Suggestions for Learning C++
#1
Posted 21 May 2012 - 07:35 PM
Anyway I'm looking into XNA and other game libraries/engines. C++ is used in CryEngine 3. It is free for non-commercial use, so I went ahead and downloaded it.
For people who already know C++, are there any books you would suggest? Any tutorials? I'd appreciate your suggestions on where to get started.
#2
Posted 21 May 2012 - 07:49 PM
Personally I learn best by figuring out as I go, so I don't know any books to recommend.
Try not to jump directly into XNA or other libraries/engines until you've had at some some experience with simpler APIs like OpenGL or Java Swing.
Edited by Krivvan, 21 May 2012 - 07:49 PM.
#3
Posted 21 May 2012 - 10:31 PM
Conceptually I get pointers, it's the syntax and how it changes that gets confusing. (Spending hours looking for not a parenthesis but an * can be tedious if you don't understand when to use the asterisk and when not too...) I've got the object oriented stuff down, but headers? Is it like importing or 'using' libraries? Guess I have some research to do.
#4
Posted 21 May 2012 - 11:38 PM
#6
Posted 22 May 2012 - 08:07 AM
F.ex., pointers stemming from computer architecture / MMU, and headers / file organization coming from how the various bits of the compiler work.
YMMV, but imho it's a lot easier to just learn a summary of computer architecture's underpinnings that it is to learn all the exceptions / quirks of unmanaged languages individually.
Edited by VvFreezervV, 22 May 2012 - 08:07 AM.
#7
Posted 22 May 2012 - 12:25 PM
Adridos, on 21 May 2012 - 11:38 PM, said:
c# is really nothing like c++, it's more like java actually, the only similarity is some of the syntax, and don't try to learn c++ using visual c++, there is tto much windows crap that has nothing to do with c++, just get a basic compiler, text editor
Edited by MEGAWEAPON, 22 May 2012 - 12:26 PM.
#8
Posted 22 May 2012 - 01:18 PM
MEGAWEAPON, on 22 May 2012 - 12:25 PM, said:
c# is really nothing like c++, it's more like java actually, the only similarity is some of the syntax, and don't try to learn c++ using visual c++, there is tto much windows crap that has nothing to do with c++, just get a basic compiler, text editor
I think I'm fine with Pascal right now. I can save C++ for the university.
#9
Posted 22 May 2012 - 01:42 PM
#10
Posted 22 May 2012 - 05:36 PM
@ Magnificent Thanks for the link. I'm not sure why, but Eset is tagging it as malicious. Just fyi.
@five by five Someone irl recommended Deitel as well.
Thanks for the quick responses everyone.
#11
Posted 23 May 2012 - 10:24 AM
Brillant book
#12
Posted 23 May 2012 - 11:42 AM
Just search a good Q&A Site like stackoverflow.com for "learning c++" and you'll find plenty of good lecture. oreilly.com / manning.com also have good ressources.
If you don't need the high performance of unamanged languages (Which come at the cost of being very complex to do it right) just stick with C# which is also very powerful.
#13
Posted 23 May 2012 - 12:45 PM
Clark, on 22 May 2012 - 05:36 PM, said:
Odd. I've gotten nothing malicious from that link... but I am running Firefox with NoScript and a few other addons which are probably protecting me.
#14
Posted 23 May 2012 - 01:10 PM
#15
Posted 24 May 2012 - 03:36 PM
#16
Posted 24 May 2012 - 04:25 PM
As for books, I'd recommend C++ Primer Plus. Several people in my office have a copy for reference (I'm a programmer at a game studio).
Using Visual Studio isn't bad in and of itself, but I would stay away from trying to make a Windows program when starting out (besides, that's a lot easier in C# for most things). I'd also recommend using another compiler as well, like Gnu. There are differences in the various compilers, and you will learn more about the language by making your code compile cleanly with all of them. Speaking of "compile cleanly," my last recommendation is to use the most strict settings, i.e. all errors turned on and treat warnings as errors. This is what we had to do at school, and while it was a pain, looking back I realize it was a valuable learning tool.
#17
Posted 14 March 2013 - 11:14 PM
Clark, on 21 May 2012 - 07:35 PM, said:
Anyway I'm looking into XNA and other game libraries/engines. C++ is used in CryEngine 3. It is free for non-commercial use, so I went ahead and downloaded it.
For people who already know C++, are there any books you would suggest? Any tutorials? I'd appreciate your suggestions on where to get started.
Microsoft XNA is a set of tools with a managed runtime environment provided by Microsoft that facilitates video game development and management. XNA is based on the .NET Framework.XNA typically involves several complex concepts that you may not be ready for right away. I would advise starting with something like a simple Console application, then WinForms/WPF, and then finally XNA after you have a grasp on C# http://csharp.net-informations.com and the .NET framework. Sp make experienced in C# XNA and then move to other languages.
gimmer.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users