Stuck in the begining of my book
Hi, I just signed up.
Anyways, I just got Beginning C++ Game Programmimg and the common indroductory code....isnt working, so I can't compile it. At first I thought just thought it was my mistake a type or something(I am a beginner after all). But I ran the sorce code on the disc and that doesn't work either. So, what could be wrong?
Heres the code:
// Game Over
// A first C++ program
#include <iostream>
int main()
{
std::cout << "Game Over!" << std::endl;
return 0;
}
I'm using Bloodshed Dev-Cpp if you need to know that as well.
2 F:\source\chapter01\ (line)2 unable to run program file.
Thats what I keep seeing on both of them
Thats what I keep seeing on both of them
Try copying the source code from the cd onto your hard disk and compiling it from there since the compiler won't be able to make .exe file on the cd since it's read-only.
Quote:Original post by whiz_kid
Try copying the source code from the cd onto your hard disk and compiling it from there since the compiler won't be able to make .exe file on the cd since it's read-only.
I tried that...same error
Quote:Original post by dek001er...I dont think so. It said to do New > Source File & that's what I did.
Are you creating New project>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.
*edit* Appendix A on the CD has a how to compile and run your first program in DEV C++ compiler.
*edit* Appendix A on the CD has a how to compile and run your first program in DEV C++ compiler.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement