Hello!
How can i compile a C/C++ program for terminal?
Because this doesn’t work:
g++ hello.cpp -o hello
This error appear:
error: stray ‘\342’ in program
error: stray ‘\200’ in program
error: stray ‘\234’ in program
error: stray ‘\342’ in program
error: stray ‘\200’ in program
error: stray ‘\235’ in program
In function ‘int main()’:
error: ‘Hello’ was not declared in this scope
error: expected `;' before ‘World’
This is the simple programm:
#include<iostream>
using namespace std;
main()
{
cout<< “Hello World!”;
return 0;
}
What is wrong???
Thanks!!!