[C++] Example program source with many comments needed

Lehsyrus

Newbie
Joined
Nov 4, 2012
Messages
19
Reaction score
3
Hello everyone. I am in the process of teaching myself C++, and I am so far on track with no issues. The only thing is, I want to speed up the learning process and I am a very visual an descriptive person. I was wondering if anyone had a basic programs source code and could comment on basically the entire thing in snippets so I can actually see how it works in full, rather than being taught one little snippet in a 9 minute tutorial?

I have the basic understandings of method and function structuring, as well as basic loops and also classes. I can make your run of the mill calculator in a console window (I'm not at GUI's yet), but I feel like I could learn much quicker with a hands on example. Thanks guys!
 
comment is not so necessary ,
actually it is important for the next developer ,who come after you.
 
I would recommend you look at the appropriate section on planetsourcecode or equivalent site, you can learn plenty from the examples on there.

Some are better than others.

If you wanted to go further look at open source C++ projects on sourceforge where the code should be freely available
 
Comments are important in programming to help orientate where are you and what you programming. http://www.dreamincode.com, here you can find lots of examples.. Gl
 
I'm a C++ developer by trade, and even I wouldn't recommend the language as a starting place but congrats on your first steps!

As much as it pains me to say it, C++ is not great for the "quick & painless development of simple tools". My case in point is around GUI's, if you want to write a GUI for your application you have two choices:

1) MFC/ATL - Windows only, and not exactly easy to work with .. >90% of your code/time will be consumed managing the GUI
or,
2) Cross-platform Toolkits like wxWindows, Qt etc. or you've got the platform specific ones like Cocoa (OS X) .. either way you'll put yourself through a world of pain to achieve the simplest things.

Alas, all is not lost... If you are already on Windows, save yourself a world of pain and switch to .NET, more specifically C# .. syntactically it is remarkably similar to C++ but you get the ease of Windows Forms based UI's and an order-of-magnitude more examples, libraries and comrades actively developing in it.

I wish you the best of luck and I'm happy to answer any questions you might have, I live between Linux, OS X and Windows and have experience writing software for all three platforms :o) joy!!
 
There are two main things that counts in programming and what I have seen in jobs requirement. One is Logic like how to use formulae to make it work and other is GUI. Basic is very easy but getting in deep is real task.
 
Start coding by yourself and face the errors. Indeed, correcting the errors can lead you to become a great programmer
Thank You!!
 
Back
Top