cpp学习笔记
第一个cpp程序
#include <iostream>//#include声明引用的库文件//main函数为主函数int main() {std::cout << "Hello World!\n";}
endl(end line)表示结束符(换行符)=”\n”
stream:流
#include <iostream>using namespace std;int main(){cout<<"first app"<<endl;cout<<"version";return 0;}
#include <iostream>using namespace std;int main() {int a=2,b=5;//变量a,b为整形,并赋值给变量赋值cout <<a<<" "<<b;b+=3;cout<<endl<<a<<" "<<b;}
