摘要:
C#文件操作:C#追加文件 StreamWriter sw = File.AppendText( Server.MapPath(".") + "\\myText.txt"); sw.WriteLine("追逐理想"); sw.WriteLine("kzlll"); sw.WriteLine(".NET笔记"); sw.Flush(); sw.Close(); C#文件操作:C#拷贝文件 string OrignFile, NewFile; OrignFile = Server.MapPath(& 阅读全文
摘要:
今天在做C++ Primer习题的14.11时,印象中应该挺简单的一题,结果却费了很长时间。类定义:[cpp] typedef string Date; class CheckoutRecord{ public: CheckoutRecord(){book_id=-1;} friend ostream& operator>(istream &in,CheckoutRecord &obj); private: double book_id; string title; Date date_borrowed; Date date_due; pair borrower; 阅读全文