Click here to Skip to main content
15,909,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,I just start my career on C++ programming.as a beginner,sometimes I find it is difficult because there are so many materials on internet,I just don't know how to start,could you guys give me some advice,pls.
Posted
Comments
Mohibur Rashid 22-Nov-11 4:39am    
Start with very basic,

Figure out how to do logical programming on console, I don't know how much experience you have. If you have experience with oop then getting will be easier. and all in all you must have to have passion for this thing
haizhixing126 23-Nov-11 9:20am    
thank you for your advice,I will try my best.

First you should decide on what tools to use. If you don't want to invest heavily for expensive IDEs, you could get either the GCC compiler + debugger and some free editor of your choice, or get a free IDE such as MS Visual Studio Express, Eclipse, or CodeBlocks (suggested above).

Then make your first 'hello world' program, just to make sure your environment is set up correctly and you know your tool chain.

Third, experiment a bit with I/O, and reading arguments from the command line.

Next, if you're interested in Windows applications, try yourself on a simple app, maybe an editor. You can probably find tutorials for something like that with the VisualStudio IDE, or else on the web.

Then, if you want, check out Graphics: drawing lines and figures into a Window isn't all that hard, and you'll eventually need that skill.

That's the basics. Once you know all that you can start a simple project of your choice. Don't try to use any additional components such as a database early on: if you don't use them properly, you may have difficulties distinguishing improper use from actual C++ bugs.
 
Share this answer
 
v2
Comments
Albert Holguin 22-Nov-11 10:53am    
He does mention programming in Linux... so VisualStudio would probably not be his best option...
haizhixing126 23-Nov-11 9:22am    
I don't know how to thank you enough,give me so much details about that.
Best advice, find a college, school or evening class that you can join. Failing that, buy some books or borrow them from your library. One on C++ and one on Linux should get you started.
 
Share this answer
 
Comments
haizhixing126 23-Nov-11 9:20am    
thank you.
Actually we're lucky there are so many resources on the net (I know the beginner might be a bit confused by the available richness of info). I would start with a solid understanding of C++ (hence you need good books) and immediately starting programming: experience, experience, experience.
 
Share this answer
 
v2
Comments
haizhixing126 23-Nov-11 9:21am    
valuable advice!
hi,
for c++ i would suggest the book http://www.deitel.com/Books/C/CHowtoProgram6e/tabid/2046/Default.aspx[][^]

you can find good tutorial at:
http://www.cprogramming.com/tutorial.html[^]

since you say you are a beginner i would suggest you try programming in Vim editor for starter and then probably go for some IDE like :
http://www.codeblocks.org/[^]

ofcourse books and tutorials, better than these are always possible but these are good nonetheless and have good code examples to get you started.

:)
 
Share this answer
 
As you are a Beginner Learn as much as You can. Start your quest for knowledge. Go Deep to the language.
Wish you all the Best!
 
Share this answer
 
Comments
haizhixing126 23-Nov-11 9:23am    
thank you very much.
Start with a easy book, and please do code and test your program. Then move on to something like C++ primer. Do no hesitate to test your program or ask questions. Be honest to your self.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900