Asking..

Why I cant any of this on dev c++? too many errors. Cant test any of those.

http://cplusplus.happycodings.com/games/
Last edited on
Please pick one game. Tell us which one it is and post the first 10-20 lines of error messages.
Looking at the header files one game includes (tictactoe) tells me the code is seriously outdated. #include <iostream.h> ? Really? That hasn't been a valid C++ header file for a long, long, long time.

Several of the other games have #include <graphics.h> . Another nonstandard C++ header file.

The Visual C++ samples are for Visual C++ 5. If that is the 32-bit version it was released before C++98 was standardized. Whoa! Talk about OOOOOOLD!

If you really do want to learn C++ from the ground up you could try the tutorial section here at CPlusPlus: http://www.cplusplus.com/doc/tutorial/

It is a bit outdated, though. No C++17 material.

For a more up-to-date online resource you can try: https://www.learncpp.com/

Why I cant any of this on dev c++?

Dev C++ may be able to compile to a newer C++ standard than Visual C++ 5, it is still outdated compared to other compilers. It has no C++17 support.
Last edited on
It is a bit outdated, though. No C++17 material.
It likely predates the STL entirely. You can still find these compilers and get the code to run on an antique OS/compiler/setup, but making it work on new systems will take hefty amounts of repair.
My "a bit outdated, no C++17" comment was about the the CPlusPlus tutorial here, not the Dev C++ compiler.

There are two Dev C++ compilers available, one (Bloodshed) that is really outdated, last updated 2012.
https://www.bloodshed.net/dev/devcpp.html

Orwell's fork is still badly dated, last updated 2015.
http://orwelldevcpp.blogspot.com/

@tryingtoleeearn,

Code::Blocks is free and has a bundled compiler from 2017. Updating to a newer one isn't that difficult, though it might be confusing for a newbie programmer.
http://www.codeblocks.org/

Even MS has a free version of the Visual Studio IDE available, Community Edition.
https://developer.microsoft.com/en-us/windows/downloads

I haven't tried it, but MS has a cross-platform IDE that is not as bulky as Visual Studio and runs on Windows, MacOS and Linux: Visual Studio Code.
https://code.visualstudio.com/
Topic archived. No new replies allowed.