终止程序执行的getch()的小问题
#include<iostream>
using namespace std;
#include<conio.h>
void helloworld()
{cout<<"hello,world!";}
int main()
{
helloworld();
getch();
return 0;
}
刚开始通过编译,后来把#include<conio.h>删了也能通过,再后来把getch();删了又重行加进去(没加conio.h)就编译不了了,为什么第一次删了conio.h也能通过编译