编辑代码

/*
课堂目标:
    1、了解C++语言发展历史和背景
    2、了解和掌握C++框架的书写
    3、掌握C++输入和输出的使用方式
    4、编写第一个C++代码
    5、变量的创建

知识点一:了解C++语言发展历史和背景
    内存小,性能低

知识点二:了解和掌握C++框架的书写
    #include <iostream>
        #include,等同于Python中的import,作用,导入头文件/库文件
        iostream,输入输出流头文件,基础头文件
    using namespace std;
        namespace,命名空间,记录和管理不同的指令,或者变量,函数名等
        std ,标准
    int main(){……}:c++程序的入口

知识点三:掌握C++输入和输出的使用方式
    cout << "Hello world!    - cpp.jsrun.net." << endl;
    cout : 输出指令
    << :流输出运算符
    endl: end line的缩写 -> 结束掉这一行的输出 -> 换行

    cin:输入
    >>:流输入符

    样例程序:
        //输出
        cout << "Hello world!    - cpp.jsrun.net." << endl;
        cout << "hello world!"<<" "<<1123<<endl;
        cout <<"你好,c++!" ;

知识点四:变量的创建
    数据类型 变量名 :int nums;
    
*/
#include <iostream>
using namespace std;
int main() {

    //输入
    int nums;           //创建了一个整数类型的变量名字叫nums
    cin>>nums;
    cout<<nums;



	return 0;
}