how to execute programs

Apr 18, 2011 at 6:23pm
Can someone tell me how to run programs. I have windows, and we have to use SSH and c++. He went over it with us in class, but only for mac, not windows. If someone could give me instructions on how to do it i wold really appreciate it. Thanks.
Apr 18, 2011 at 6:27pm
What IDE do you use?
For mine, the .exe file is generated and placed in the same directory as the .cpp file. All you have to do is then run the .exe.
Apr 18, 2011 at 6:42pm
im not sure what IDE is, and i dont kow how to run the file. He said something about ./a.out, but i tried that and it didn't work
Apr 19, 2011 at 7:03pm
IDE stands for Integrated Developing Environment. Examples of them are:
Dev-C++ (outdated), MS Visual C++, Code::Blocks etc.
Apr 19, 2011 at 9:38pm
Hi rrataj. I use Dev C++ and Code::Blocks namely, but to run your program you have to compile the code and in dev c++ it should be a .exe file in the same directory that you can use/move etc.
In Code::Blocks you click build and run which should do the same as long as the .cpp files have been saved in a directory or somewhere.

Hope this helps. message me if you found this helpful
-- Practicing Programmer.
Apr 19, 2011 at 9:44pm
rrataj
He said something about ./a.out
Try "./a.exe" or just "a" after you compile the program.
Topic archived. No new replies allowed.