Advertisement Jump to content
Sign in to follow this  
Tigernado

Stuck in the begining of my book

This topic is 4933 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
Quote:
Original post by dek001
Are you creating New project>console application ??
er...I dont think so. It said to do New > Source File & that's what I did.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Quote:
Original post by dek001
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.
thanks, but what kind of console application?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!