I'm just going to tell you that I am 14 years old and have never coded in my life. I want to learn but I don't know what's best way. I've heard C++ is a good place to start. I have downloaded an IDE called Codeblocks...was that a good one to download? Once it has downloaded where should I start? Is there a big guide of some sort? I am a COMPLETE BEGINNER, I have absolutely no idea. So is there an online guide for dummies wanting to learn C++ or do I just ask every single little question that I have, here on the forum? Please don't abuse me or be mean just because I'm a beginner. I'm just trying to learn what most of you already know :)
In addition to this site, you can also use http://www.xoax.net/ since they have video tutorials. Start with the basic console c++, and once you're comfortable with that, move on to the more advanced libraries/toolkits.
cout << "Enter a number. \n";
cin >> a;
cout << "Enter another number \n";
cin >> b;
sum = a + b;
cout << "The sum of those numbers is: " << sum << endl;
Yes, usually an IDE will come with at least one compiler but the compiler you use with your IDE is not a given and can be changed. If you got the Code::Blocks with MinGW version, you now have the GCC compiler chosen in your IDE.
For C++ resources, I'll second the already mentioned tutorials on this site, I've found them extremely useful personally. You can find useful material in many places though.
Also, once you become a bit more used to the basic concepts, I've found in the past that it's often constructive to cross-reference learning resources -- maybe study two seperate sources that describe the same concept you're currently learning. You come to notice different tendencies and preferences characterizing each programmer, and it helps you understand the difference between the concept itself and the programmer's own choice of implementation -- it also encourages critical thinking on using the C++ language and on how to write your own code using the said concept. So I recommend you study using a resource you find helpful, like you do now using Buckys video tutorials, and then once you become more accustomed with the basics keep looking around and compare descriptions and implementations of those same concepts with what you already know and understand.
Can you change your program so that it asks for 10 numbers and prints the sum without writing lots of extra code? Maybe surprisingly, the code should be shorter than it is now. You will need research the concept of a for loop. Look in the reference section - the top left of this page.
Once you can do that, change it again so that it also works out the average - you will need to change the type of the variables to double.
Just for clarity, the concept of a C++ 'for' loop is referred to in the 'Documentation' section in the top left (which is the same as the aforementioned tutorials of this site). The 'reference' section describes the content of the standard C++ library.