C++遇到的小坑

OOP

HW3 Personal Diaray

  • 重定向到文件时,需要cin.clear(),详见Diary.cpp中的Read_Diary函数
  • 字符串格式pathfreopen使用时要加入path.cstr(),详见pdadd.cpp中的path调用