This code is supposed to write everything the user writes, and keep writing until the user presses ALT key.
do{
//declaration
string A;
getline(cin,A);
ofstream file;
ifstream file1;
//file opening
file.open("C:\\Dev-Cpp\\file.txt");
file1.open("C:\\Dev-Cpp\\file.txt");
//file input
file<<A;
file.close();
file1.getline(B,1000);
file1.close();
//file output
cout<<B;
} while (wParam!=VK_MENU);
The problem is, it says: wParam undeclared!
I want to keep checking the last key pressed, without disturbing the input. Anyone got any solution?