C++学习笔记(2小时由C入门C++)

https://www.bilibili.com/video/av40959422?p=3

从C到C++快速入门(2019版C++程序设计)

科技演讲·公开课

https://hwdong.net/2019/01/26/C%E5%88%B0C++%E5%BF%AB%E9%80%9F%E5%85%A5%E9%97%A8-2019%E7%89%88%E6%9C%AC/  2019

https://hwdong.net/2019/01/26/2%E5%B0%8F%E6%97%B6%E4%BB%8EC%E5%88%B0C++%E5%BF%AB%E9%80%9F%E5%85%A5%E9%97%A8/   2018

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.文件输入输出流

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值