I've written this really simple win32 console program in Visual C++ to take in a name and print it out on the screen but when I run it, though it works, it exits with a debug error and I can't figure out why - can anyone help?
The program is :
char *name = new char;
std::cout << "please enter your name/n ";
std::cin >> name;
std::cout << "hello " << name;