Problem with computer??

closed account (LE3bqMoL)
I am trying to run a C++ program using my note pad and saving it as .exe this is what it says:

"The version of this file is not compatible withthe version of windows you're running. Check you computer's system information to see whether you need an x86 (32-bit) or x64 (64-bit) version of the program, and then contact the software publisher"

Can anyone help?
Last edited on
How do you run a c++ program with a notepad? Why would you save a file as an exe file? You need to write a program with some editor or IDE and then build it with a compiler. The compiler will save the .exe program after it compiles and links.
I'm also finding it hard to understand why anyone would chose notepad over an IDE. No error messages, debugging etc... my life would be a mess! ... If i made errors of course *cough* *cough* lol...
closed account (LE3bqMoL)
I want it to be able to work on my computer!!! Someone told me to do it like this!! Can you tell me different?
Look in short, the way C++ works is that you write a program wherever you want, but it's much simpler to use an IDE or editor. However notepad can work. But you must save your file with a C++ extension such as ".cpp", ".h", and I actually don't think there are others, correct me if I'm wrong. Then in some place, you can compile your code which basically converts it to binary and saves as a ".exe" file (done by computer), which you will have to find out what to get and where because Windows does not come with a built-in compiler.
Last edited on
Topic archived. No new replies allowed.