**知识点:**
第1代:电子管数字机(1946-1958年)
第2代:晶体管数字机(1958-1964年)
第3代:集成电路数字机(1964-1970年)
第4代:大规模集成电路机(1970年至今)
编写程序:是指使用计算机语言,经过分析、设计、编码、调试等步骤,编写出程序, 解决特定问题,这个过程就叫编程。
主函数:一个程序中有且只能有一个主函数,main()
每行语句用“;”结尾
//C++写程序模板,重点记忆
#include <iostream> //导入头文件,输入输出流
using namespace std; //使用命名空间标准库
int main(){ //主函数
//cout<<输出,endl换行
cout<<"hello world"<<endl;
return 0;
}
#include <iostream>
using namespace std;
int main(){
cout<<"hello world"<<endl;
return 0;
}