C++暂停命令
#include<iostream>
#include<stdlib.h> //不能忘的
using namespace std;
int main()
{
//省略很多代码
system("pause");
}
return0;
C枚举常量
enum SEX
{
MALE,
FEMALE,
SECRET
};
//MALE,FEMALE,SECRET --枚举常量
int main()
{
//enum SEX x = FEMALE;
printf("%d\n",MALE);//0
printf("%d\n",FEMALE);//1
printf("%d\n",SECRET);//2
return 0;
}