I recently started to learn code and i decided to use C++, i am using dev c++ also. I did the 'hello world' code and it worked fine but i watched a tutorial on how to make a code that did averages and this is exactly the same as what he typed in on the tutorial i am about 99% sure. his worked, he was using dev c++ aswell and i had about 5 errors, can you tell me what i did wrong??
Oh... and... please do not use system(). cin.ignore(); cin.ignore();
The first cin.ignore() clears out the newline that cin leaves in the stream. The second one pauses the program, as there is nothing to read.
Paper is soon going to be obsolete, and books with paper are going to be obsolete even sooner.
That said, figjam, we recommend the tutorial on this very website. You'll have to do some reading, but it's worth it. http://cplusplus.com/doc/tutorial/