Stop using Turbo C++. It uses all non standard function calls. Why are you using conio.h? Stop using it. It is non-standard library. Also don't use clrscr(). Again Same non-standard function. Also I would not recommend using getch(), again a non standard function. While you may ask as to why not to use them. Using such calls generally creates a habit that tends to continue as you go along. If you are serious about programming as a career, then start using standard C++ practices in your code. It will help you believe me.
God Why do they use Turbo C++ still especially when good free compilers and IDEs are available?
Use the following code snippet
Code:
#include <iostream>
#include <limits>
int main(int argc, char*argv[]) {
//Code Start
//Code Goes here
//Cod End
cin.ignore( numeric_limits<streamsize>::max(), '\n' );
return iValue; // your main function return value to system
}
That should work for you.