Running SOS in C++ using Dev- C++
You will have to use long instead of int to use this object file. It is easiest to put your files in the Dev-Cpp/bin directory along with the executable files and run the program from the command line.
Rename soslongDevC++.o as sos.o.
Open the command prompt. To compile, type
g++ os.cpp sos.o
This will produce an executable file called a.exe. Run it by typing
aat the prompt.
Your output should appear in an output window.
If you want to send output to a file, use redirection
sos > sos.out