Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What project would you recommend me to get up to speed with C++ [closed]

Tags:

c++

project

I know that C++ is a very complex language that takes many years of practice to master.

Taking that into account do you know of a small project (around a 1k of loc) that tests all of C++ major features (inheritance, pointers, memory management, etc).

The thing is I'm a Java/Python programmer and I really want to learn C++ so I've been studying C++ for a while but haven't tested anything of what I've learned beyond small exercises.

I want to take all of that knowledge and put into practice.

like image 737
tatsuhirosatou Avatar asked Mar 02 '09 15:03

tatsuhirosatou


3 Answers

Doing this alone you will obtain many harmful habits. It's much better to get an internship with a company that has high competence in C++ development and train under guidance.

C++ is like a grenade without a safety pin – looks cool and you've heard that all "real professionals" use it, but you don't know when it is to explode. A tremendous amount of features that can be used for good or for evil without knowing whether it's really good or evil. That's why guidance is a must here.

like image 152
sharptooth Avatar answered Oct 06 '22 00:10

sharptooth


A memory manager. That should get you thinking about:

  • free store management
  • pointers (of course!)
  • inheritance (you will want your driver code to use this)
  • templates (another way to pass the manager around -- driver #2)
  • designing user defined data structures (a memory block)
  • efficient use of standard container(s)
  • algorithms (to move around, figure out empty blocks, defragment)
like image 24
dirkgently Avatar answered Oct 06 '22 01:10

dirkgently


Effective C++ and More Effective C++

Other than that, pick a (small?) personal project you want to write and do it in C++. You are not going to learn C++ by reading a 1000 line project.

like image 28
Tim Avatar answered Oct 06 '22 00:10

Tim