https://www.bilibili.com/video/av40959422?p=3
从C到C++快速入门(2019版C++程序设计)
1.
条件编译
#if 1
#if 0
#endif ?
2.

3.标准名字空间std

std::cout
using namespace std;
cout<<XX; //输出
cin>> XX; //输入


#include <fstream>
#include <iostream>
#include <string>
using namespace std;
int main() {
ofstream oF("test.txt");
oF << 3.14 << " " << "hello world\n";
oF.close();
ifstream iF("test.txt");
double d;
string str;
iF >> d >> str;
cout<<d <<" "<< str<<endl;
return 0;
}
4.文件输入输出流

最低0.47元/天 解锁文章
11万+

被折叠的 条评论
为什么被折叠?



