C++学习
C++遇到的小坑
OOP
HW3 Personal Diaray
- 重定向到文件时,需要
cin.clear()
,详见Diary.cpp
中的Read_Diary
函数 - 字符串格式
path
被freopen
使用时要加入path.cstr()
,详见pdadd.cpp
中的path
调用
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 逍遥信仰的笔记本!
cin.clear()
,详见Diary.cpp
中的Read_Diary
函数path
被freopen
使用时要加入path.cstr()
,详见pdadd.cpp
中的path
调用