MasterSamwise
Senior member
Hey,
Tried my first *nix C++ program. I used vi to write the code.
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World" <<
cout << "Press a key to end the program" << endl;
getchar();
return 0;
}
Then i used G++ to compile the sorce file which i name test.cpp
g++ test.cpp
The compilier gave me no visible errors. And produced the binary program A.out. What do i do now?
Thanks
Master Samwise
Tried my first *nix C++ program. I used vi to write the code.
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World" <<
cout << "Press a key to end the program" << endl;
getchar();
return 0;
}
Then i used G++ to compile the sorce file which i name test.cpp
g++ test.cpp
The compilier gave me no visible errors. And produced the binary program A.out. What do i do now?
Thanks
Master Samwise