- 博客(1)
- 收藏
- 关注
原创 C++的ifstream中使用eof最后一个字符输出两次,其实不是eof的锅!(C++学习笔记①)
写C++文件输入输出流时遇到的小问题当我执行以下代码时,最后的值会打印两次:#include <iostream>#include <stdlib.h>#include <fstream>using namespace std;int main(void){ int a = 0,b = 1,c = 2,d = 3; ...
2018-04-11 01:21:45 1412 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人