• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

GCC / G++ Help

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
 
Back
Top