C++ Primer-hello world

#include <stdio.h>:定义输入/输出函数

#include <stdlib.h>:定义杂项函数及内存分配函数

1 #include <stdio.h>
2 #include <stdlib.h>
3 
4 int main()
5 {
6     printf("hello world!\n\n")
7     system("pause")
8     return 0;     
9 }
View Code

system("pause"):使终端不消失

posted @ 2018-08-22 11:48  archerzon  阅读(97)  评论(0编辑  收藏  举报