hy, I have one problem with getch();
look my program:
and getch() doesn't work!!!Code:#define _WIN32_WINNT 0x0500 #include <iostream> using namespace std; #include <conio.h> #include <stdio.h> #include <stdlib.h> #include <windows.h> int main() { ShowWindow(GetConsoleWindow(), SW_HIDE); string g; do { g= getch(); if(g=="A") { messagebox("A"); } } while(g!="K"); ShowWindow(GetConsoleWindow(), SW_SHOW); system("pause") return 0; }
why?