I have a new compiler along my Dev C++ it is called Mircrosoft Visual Beta 2005. It looks sl much more professional too!!
Anyway, This is my first working program, but when I debugged and ran it, it worked ok, but I got a unfamiluar warning up it said:
" 'getch' was declared deprecated :: see declaration of 'getch'
I do not understand what the warning is saying, as I delcared getch as part of conio.h
I use getch so I do not have to use system("pause");
here is the code:
Code:#include "stdafx.h" // this header is for ALL USE #include <iostream> #include <string> #include <conio.h> using namespace std; string myname; int _tmain(int argc, _TCHAR* argv[]) { cout << "What is your name?" << endl; cout << "\n\n"; cout << "My name is "; cin >> myname; cout << "So your name is " << myname; cout << "\n\n"; getch(); return 0; }