Error help Photo added! URGENT! HELP

i used to use python, but i recently switched to c++
i wrote a program and it keeps giving me this error.
Cannot find the file specified. can anyone please help.



#include <iostream>
using name space std;

int main()
{

cout << "Hello My Name is Jacob" << endl;
system("pause");
return 0;
http://gyazo.com/6f50c1f9b2036bd60ccb14d74f6daef8
^^Photo of the error^^


thats the code.
Last edited on
Is it even building?
Did you try to include a header using the wrong name? i.e.
1
2
3
#include <iostream>
//NOT <iostream.h>
//etc... 
closed account (zb0S216C)
teamheroic wrote:
Cannot find the file specified. can anyone please help

Sure! Your problem resides on line 4. You forgot to put the closing quotation mark before std::endl;

Wazzak
1
2
3
4
5
6
7
8
9
10
#include <iostream>
// using name space std;
using namespace std; //<-- "namespace" is one word

int main()
{
   cout << "Hello My Name is Jacob" << endl;
   system("pause");
   return 0;
} //<-- forgot this closing curly-brace 
The curly brace is there :P i forgot to copy it, still doesnt work :(
Did the program compile? An .exe is only created after you compiler the source... (Also, check line 3.)
Last edited on
@Mathhead200 like i said i am new to c++ i am not completly sure on how to compile.
is there any way i can contact you like AIM or anything?
Do you have Virtual Studios 2010/2008 installed?
And yes you can IM me on MSN: http://mathhead200.com/index.php?dir=contact%20info
I don't use Visual Studio. I use MinGW it works fine or try LINUX
Topic archived. No new replies allowed.