fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. keybd_event('A', 0, KEYEVENTF_KEYDOWN, 0);
  6. keybd_event('A', 0, KEYEVENTF_KEYUP, 0);
  7. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function 'int main()':
prog.cpp:5:22: error: 'KEYEVENTF_KEYDOWN' was not declared in this scope
  keybd_event('A', 0, KEYEVENTF_KEYDOWN, 0);
                      ^
prog.cpp:5:42: error: 'keybd_event' was not declared in this scope
  keybd_event('A', 0, KEYEVENTF_KEYDOWN, 0);
                                          ^
prog.cpp:6:22: error: 'KEYEVENTF_KEYUP' was not declared in this scope
  keybd_event('A', 0, KEYEVENTF_KEYUP, 0);
                      ^
stdout
Standard output is empty