系统:MacOs
编辑器:Visaul studio cude
首先,我们从开头讲起:
开头,每个代码都要写的部分,具体代码:
#include<iostream>
using namespace std;
然后,每个文件都有的另一个部分,这也是必须的。
然后,就是在main的大括号里书写你的代码。
现在,我们讲讲输出的代码。
输出,用的是cout 用<<链接你想输出的内容,比如“hello world”:
或者可以定义你想要的变量。
系统:MacOs
编辑器:Visaul studio cude
首先,我们从开头讲起:
开头,每个代码都要写的部分,具体代码:
#include<iostream>
using namespace std;
然后,每个文件都有的另一个部分,这也是必须的。
然后,就是在main的大括号里书写你的代码。
现在,我们讲讲输出的代码。
输出,用的是cout 用<<链接你想输出的内容,比如“hello world”:
或者可以定义你想要的变量。