New project doesn't cout any values?

I'm trying to build a new project and i installed some new libraries in it but when i try to compile any code it doesn't give me any value just press any key to continue, i didn't make any files but one and even if i tried to do this simple task it doesn't cout any result:

1
2
3
4
5
6
7
8
9
#include<iostream>
using namespace std;
int main()
{
    cout <<("ha");
    system("pause");
    return 0;
}
Does it help if you flush cout before calling system?

1
2
3
cout.flush();
//or
cout << endl;
It didn't help :(,but thank you
What compiler/IDE are you using?
What libraries did you install?

Make sure you are running it as a Console project.
Uhh okkkk

Do not do it like that do it like this

cout << "Hello World"<<endl; // endl flushed buffer or you could use string character newline \n
Topic archived. No new replies allowed.