// Game Over// A first C++ program#include <iostream>using namespace std;int main(){cout << "Game Over!" << endl;cin.get();}
Stuck in the begining of my book
If you're doing it in Dev-CPP, try THIS code: (it does the same thing)
Open up Dev-cpp then click file->New->Project then select Console Application then type a name into the box and press ok, then you can remove the code that generated b y defalut and type yours in.
Quote:Original post by TigernadoQuote:Original post by dek001thanks, but what kind of console application?
I have that book but dont use bloodsheds compiler and i just installed it and did the game over in a console app and it worked so its worth doing with all source code from that book, I hope It helps.
A console application is an app that uses the DOS window (in windows, DOS is called the command prompt, or the console). You should have an option to create a Win32 Console app when you create a new project.
Quote:Original post by TigernadoQuote:Original post by dek001thanks, but what kind of console application?
I have that book but dont use bloodsheds compiler and i just installed it and did the game over in a console app and it worked so its worth doing with all source code from that book, I hope It helps.
When you click new project it should come with a box click the console application pic and click ok.
Ah, I see...well I tried that but that didnt work either, this is really strange. This never happend on my old PC...
Quote:Original post by dek001Its actually the same error ive been getting the same line,message and everything
When u say didnt work what do you mean? did you get any errors??
Quote:Original post by TigernadoQuote:Original post by dek001Its actually the same error ive been getting the same line,message and everything
When u say didnt work what do you mean? did you get any errors??
if you look on the cd and look in appendices folder and open and read appa.pdf that will tell you how to setup and run your first program with Dev C++
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement