-
-
Save binh12A3/0eaf66d636578eefe1d361f30d2ee38f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <Windows.h> | |
using namespace std; | |
void Function1() { | |
cout << "This is function 1" << endl; | |
} | |
void Function2(const char* str) { | |
cout << str << endl; | |
} | |
int main() | |
{ | |
while (true) | |
{ | |
if (GetAsyncKeyState(VK_NUMPAD1) & 1) { | |
Function1(); | |
Function2("This is function 2 !!!"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment