Learning c++ by yourself.
#1 Members - Reputation: 97
Posted 03 December 2012 - 12:18 AM
http://www.cplusplus.com/doc/tutorial/
I made sure to understand all concepts.
Next i went through every chapter on
http://www.learncpp.com/
Now i am on
http://www.cprogramming.com/tutorial.html
in the more advanced tutorials and went through
http://www.cprogramming.com/tutorial/c++-tutorial.html
but most of it wasnt anything new.
My next step is to complete reading
http://beej.us/guide/bgnet/
Once i finish the advanced tutorials on cprograming.com
But from there i have no idea where to find more in depth tutorials on different subjects, all i can find are similar tutorials and nothing that goes into anything more, i want to go into network programming and video game programming and similar areas, can someone direct me to where to look next? even what to search would help.
Now, books put me to sleep for some reason, i can read 12 hours strait on the computer but not in a book so please don't give me books to get it would take me weeks to read even a few hundred pages.
I tried searching for "advanced c++ tutorials" but most forums brought me to cprograming.com and most websites besides that had no information.
Lastly is there a .rar download of a visual studios file using windows forms application with windows.h applications or just some really long program i could look at? doesn't matter what it does, i would just like to take it apart and learn how it works better with forms applications. I can find some source code but i would like the actual program files so i can see how it looks and play with it.
#2 Members - Reputation: 1391
Posted 03 December 2012 - 12:43 AM
Now, books put me to sleep for some reason, i can read 12 hours strait on the computer but not in a book so please don't give me books to get it would take me weeks to read even a few hundred pages.
pro tip... buy books in PDF format and read them on your PC?
Get Stroustrup's book on C++, it's a very good book to read after you've covered your basics.
Also get a book on game programming in C++.
Tutorials are ok, but they are very specific to a task.. and once you lift off from basic "guess the number" stuff you'll need space, professionalism and dedication.. thus, you need a good book.
#4 Crossbones+ - Reputation: 1094
Posted 03 December 2012 - 07:47 AM
Which "Stroustrup's book"?Get Stroustrup's book on C++, it's a very good book to read after you've covered your basics.
If you mean "C++ Programming Language, 3rd ed.", now is the worst possible time to buy it, because it's 15 years old and 4th ed. will be out in spring with significant revisions! It's also not really geared towards someone just starting with C++.
"Programming: Principles and Practice" is a textbook intended for someone entirely new to programming, so if thornx1 doesn't have previous programming experience, that might be the one to get.
Most of these will be kinda bad and also focus on just one technology (whether OpenGL, Direct3D, SDL, or something else). Just picking up one at random isn't necessarily going to be so helpful. I'd say there are a lot better tutorials and free internet material for game-specific stuff than there is for fundamentals of coding C++; with the game technologies, a tutorial can be sort of self-contained, whereas the fundamentals are a whole and it's important you don't miss any critical parts.Also get a book on game programming in C++.
#7 Moderators - Reputation: 8424
Posted 03 December 2012 - 12:33 PM
If you feel like you've absorbed enough to write a program - even a very, very trivial program - go write programs. Pick something that seems within your reach and do it. Then pick something else that's slightly beyond your reach and do that. Rinse, repeat.
[Work - ArenaNet] [Epoch Language] [Scribblings] [Journal - peek into my shattered mind]
#8 Members - Reputation: 301
Posted 03 December 2012 - 03:00 PM
http://www.amazon.com/Effective-Specific-Improve-Programs-Designs/dp/0321334876
I'd have to say that the quality of discourse in published books is of a much higher caliber than that to be found in online tutorials. You can really bootstrap yourself into some good knowledge if you just take a few months to just read. In fact, that is what I am doing now. In just a few months I have gone from total noob at C++ to kinda knowing my way around, and starting to write some original programs, basic game demos, user interface code, etc.
The key is to just stick with it because you will probably want to quit, at least once weekly. Try to force yourself to program for some hours per day, also, and do all the exercises given in the book, but do them with zeal, adding features.
Best of luck.
I wonder as I wander...
#9 Members - Reputation: 261
Posted 04 December 2012 - 04:52 PM
You can read all the C++ programming material in the world though, and you're still going to struggle just as much with that first 100 line app.
#10 Members - Reputation: 747
Posted 04 December 2012 - 08:49 PM
gameinstitute.com
3dbuzz.com
If this post was helpful and/or constructive please give rep.
SFML2.0 Download http://www.sfml-dev.org/download.php
SFML2.0 Tutorials http://www.sfml-dev.org/tutorials/2.0/
#11 Members - Reputation: 1943
Posted 04 December 2012 - 09:06 PM
For example: http://msdn.microsoft.com/en-us/library/bb384843.aspx
That particular example is using the old C-style API for Win32, but you can get quite a lot of sample code by browsing different areas of MSDN.
You can also find a lot of free, open source projects, but I don't really recommend using those to learn since quite a lot of them have horrible coding practices or take a lot of effort before they will even compile.
#12 Members - Reputation: 463
Posted 05 December 2012 - 03:16 PM
For c++ network programming, maybe try setting up and playing with boost::asio
http://www.boost.org/doc/libs/1_52_0/doc/html/boost_asio/overview/networking/protocols.html
For general advanced c++ programming:
http://www.drdobbs.com/cpp
http://cpp-next.com/ (mostly about advanced c++11 stuff and future of c++)
http://www.parashift.com/c%2B%2B-faq-lite/
http://herbsutter.com/
http://scottmeyers.blogspot.com/
http://isocpp.org/blog/category/articles-books
And everything the authors of those blogs have written in past 10 years.
Microsoft seems to finally try invest in some decent c++ code:
Welcome Back to C++ (Modern C++)
http://msdn.microsoft.com/en-us/library/hh279654.aspx
Rather old, but still better than most guidelines. Really paved the modern c++ in for me 10 years ago. (important stuff starts from section 5 onwards, but there are some outdated advices. Also harder to google, year after year)
http://files.rsdn.ru/19450/coding_guidelines.html
#13 Members - Reputation: 97
Posted 06 December 2012 - 12:05 PM
Now, books put me to sleep for some reason, i can read 12 hours strait on the computer but not in a book so please don't give me books to get it would take me weeks to read even a few hundred pages.
pro tip... buy books in PDF format and read them on your PC?
Get Stroustrup's book on C++, it's a very good book to read after you've covered your basics.
Also get a book on game programming in C++.
Tutorials are ok, but they are very specific to a task.. and once you lift off from basic "guess the number" stuff you'll need space, professionalism and dedication.. thus, you need a good book.
I believe the few beginners tutorials i have read have brought me through everything in the book and i have enough experience in the basics of it all.
#14 Members - Reputation: 97
Posted 06 December 2012 - 12:06 PM
Reading is good, but doing is better.
If you feel like you've absorbed enough to write a program - even a very, very trivial program - go write programs. Pick something that seems within your reach and do it. Then pick something else that's slightly beyond your reach and do that. Rinse, repeat.
Where could i get ideas on projects to complete in order to accomplish this? im not very good at thinking up things.
#15 Members - Reputation: 97
Posted 06 December 2012 - 12:09 PM
Effective C++: 55 Specific Ways to Improve Your Programs and Designs (3rd Edition) by Scott Meyers is a good intermediate text. You can get it for Kindle.
http://www.amazon.co...s/dp/0321334876
I'd have to say that the quality of discourse in published books is of a much higher caliber than that to be found in online tutorials. You can really bootstrap yourself into some good knowledge if you just take a few months to just read. In fact, that is what I am doing now. In just a few months I have gone from total noob at C++ to kinda knowing my way around, and starting to write some original programs, basic game demos, user interface code, etc.
The key is to just stick with it because you will probably want to quit, at least once weekly. Try to force yourself to program for some hours per day, also, and do all the exercises given in the book, but do them with zeal, adding features.
Best of luck.
I will look for a pdf file of some intermediate books if i cant find one for the one you suggested, thanks!
#16 Members - Reputation: 97
Posted 06 December 2012 - 12:12 PM
Thank you for these! ill look into them all.Win32 API is not good c++. All sample code usually omit most of the error checking to keep it short. Samples are almost never good enough to be used as is. (If function returns an error code, then it should be checked, etc.)
For c++ network programming, maybe try setting up and playing with boost::asio
http://www.boost.org.../protocols.html
For general advanced c++ programming:
http://www.drdobbs.com/cpp
http://cpp-next.com/ (mostly about advanced c++11 stuff and future of c++)
http://www.parashift...m/c++-faq-lite/
http://herbsutter.com/
http://scottmeyers.blogspot.com/
http://isocpp.org/bl.../articles-books
And everything the authors of those blogs have written in past 10 years.
Microsoft seems to finally try invest in some decent c++ code:
Welcome Back to C++ (Modern C++)
http://msdn.microsof...y/hh279654.aspx
Rather old, but still better than most guidelines. Really paved the modern c++ in for me 10 years ago. (important stuff starts from section 5 onwards, but there are some outdated advices. Also harder to google, year after year)
http://files.rsdn.ru...guidelines.html
#17 Members - Reputation: 896
Posted 09 December 2012 - 08:01 AM
http://herbsutter.com/2012/11/20/reader-qa-a-good-book-to-learn-c11/
http://www.parashift.com/c++-faq/buy-several-books.html
IMHO, it's much, much better to go through (as in "actually go through" -- not just read, but also do the programming exercises) one book like C++ Primer, 5th Edition by Stanley B. Lippman, Josée LaJoie, Barbara E. Moo than, say, go through 20 on-line tutorials (and probably faster, too) -- esp. since most (if not all) of these tutorials will cover the same 5% of the language. In fact, I'd strongly recommend to lay off tutorials at this point and do just that :-)
Also, as someone noticed, at some point it's a good idea to go through a coding style guide. You don't have to agree with 100% of the rules, but it's good to be able to make informed choices about them (which you won't be able to do if won't be aware of their existence). I recommend "POCO C++ Libraries Coding Style Guide" from here -- http://pocoproject.org/documentation/
// IMHO, they're much better and more widely applicable to general C++ coding than the ones from Google, but then again, Google's code base is extremely specific, so if you happen to work at Google and work on their code base there might be a good reason to use them in such a niche.
Edited by Matt-D, 09 December 2012 - 03:52 PM.
#18 Members - Reputation: 1224
Posted 09 December 2012 - 09:45 AM
Again, we cannot stress the experience. Doing tutorials only gives you experience in the topic of the tutorial. Tutorials rarely teach you error checking, as mentioned above. They rarely teach you how to make the best classes, "KISS" and "DRY" principles, or any good idea that has come through almost 15 years of the language.I believe the few beginners tutorials i have read have brought me through everything in the book and i have enough experience in the basics of it all.
For the most part, tutorials are quick hacks put together to achieve a purpose, posted on an unmoderated and unaccredited medium, so there is no standard of quality. A book, however, is much higher quality, and often has multiple authors, an editor, a review board, and a publishing house.
Put a step further, once you see a tutorial to show you what the language looks like, and its basic grammar, it's time to learn the rules. You need to learn from an authoritative book on C++ (not for Game Making or any express purpose, just the language), and finally learn _why_ the examples work. Then, learn _why_ everything else in the language. Tutorials are quick code samples made for showing you how. Books are made for teaching you why.
Edited by Ectara, 09 December 2012 - 12:40 PM.






