以下のコードはDevC++で動作し、MinGWは問題なく動作しますが、Visual Studio 2008はこれを吐き出します:
error C3861: 'getch': identifier not found .
画面を一時停止するために使用できる getch() の代替手段はありますか?
コード:
#include <stdio.h>
#include <conio.h>
int main(void){
char str[] = "This is the end";
printf("%s\n", str);
getch(); //I tried getchar() also still does not work
return 0;
}