一个简单的win32 控制台程序

 

// Test.cpp : Defines the entry point for the console application.
//
#include
#include

int main(int argc, char* argv[])
{
 printf("Hello World test 1!\n");

 while(1)
 {
  if (kbhit())
  {
   if ('q' == getch())
   {
    break;
   }
  }

 }

 return 0;
}

 

 

你可能感兴趣的:(VC++)