file extension for c++

im losing my mind over this :x

i use vista,

what would the file extension be for the following?

// my first program in C++

#include <iostream>
using namespace std;

int main ()
{
cout << "hello world!";
return 0;
}
.cpp

But my guess is that you're trying to run the source file directly. Am I right?
yes
You need to compile your code: http://www.cplusplus.com/forum/articles/7263/
thank you
Topic archived. No new replies allowed.