Hello .
My OS is Windows 7 (service pack 1- ultimate - my OS drive is C.) and i use Microsoft Visual C++ 2010 Express.
I wrote very simple program in C++. ( i chose Win32 console application and after that an empty project)
Firstly,I wrote this code:
#include <iostream>
int main()
{
cout << "Welcome to C++!\n";
return 0;
}
and after debug the error was as following:
1>------ Build started: Project: A Simple Program, Configuration: Debug Win32 ------
1> page21.cpp
1>c:\users\war cry\documents\visual studio 2010\projects\a simple program\a simple program\page21.cpp(7): error C2065: 'cout' : undeclared identifier
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Then i decided to add new line:
#include <iostream>
using namespace std;
int main()
{
cout << "Welcome to C++!\n";
return 0; // indicate that program ended successfully
}
and i saw new error:
'A Simple Program.exe': Loaded 'C:\Users\War Cry\Documents\Visual Studio 2010\Projects\A Simple Program\Debug\A Simple Program.exe', Symbols loaded.
'A Simple Program.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file
'A Simple Program.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file
'A Simple Program.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file
'A Simple Program.exe': Loaded 'C:\Windows\System32\msvcp100d.dll', Symbols loaded.
'A Simple Program.exe': Loaded 'C:\Windows\System32\msvcr100d.dll', Symbols loaded.
The program '[7396] A Simple Program.exe: Native' has exited with code 0 (0x0).
Please help me!
What is the problem??