![]() |
| |
Thread Tools Display Modes |
|
New to C++
Hey, I am new to C++ and I have a question. Whenever I write a code, for example the first code in the 100 page C++ book, which is
Code:
//Game Over
//A first C++ Program
#include <iostream>
int main()
{
std::cout << "GAME ;OVER!" << std::endl;
return 0;
}
Thanks |
|||||||
|
welcome to C++ i just recently stared too
im also using the book its really good alright yeah this is a fairly common error for people it happened to me what you need to do is add "system("pause");" in a line right before return 0; what happens is that your computer dosent no to "pause" so it opens up the window displays game over and closes it before we can see it also that is only the first 100 pages of the book theres another 275 ish pages just look back a page or two and haloman posted a link in where you can download the whole book eventually if you want to continue past the first 100 pages youll have to dl the book
__________________
![]() If you like my sigs rep me (thanks for the rep guys i appreciate the feedback!) |
|||||||
|
Thanks for your help, +rep
EDIT:WORKS thanks a LOT man I really appreciate it lol Last edited by ShooterX; 02-03-2008 at 12:55 AM.. |
|||||||
|
Quote:
Thank you |
||||||||
|
here ill find the topic for you
http://www.nextgenboards.com/vb/comp...methrower.html you need adobe reader to read it
__________________
![]() If you like my sigs rep me (thanks for the rep guys i appreciate the feedback!) |
|||||||
|
wats c++? can u tell me
|
|||||||
|
C++ is a programing language it is most commonly used in the video games that are produced today
how ever there are many other programing languages and they all have their advantages and disadvantages
__________________
![]() If you like my sigs rep me (thanks for the rep guys i appreciate the feedback!) |
|||||||
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|





















Linear Mode
