I am trying to simply get an 'I' printed onto the screen and that is it, but I can't seem to get it done. Does anybody see a problem in the code? Thanks in advance for your help.
EDIT:: Right now it is printing a '1' not a letter which I am aiming to do. Any help? Thanks.
EDIT:: Right now it is printing a '1' not a letter which I am aiming to do. Any help? Thanks.Code:#include <windows.h> #include <iostream> using namespace std; void AltEnter(void); int main() { Sleep(2000); AltEnter(); Sleep(5000); cout << "\nEnter 1 to end: "; int number = 0; while (number != 1) { cin >> number; } return 0; } void AltEnter() { keybd_event(49, 0, 0, 0); keybd_event(49, 0, KEYEVENTF_KEYUP, 0); return; }