摘要: 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(& 阅读全文
posted @ 2013-10-09 10:35 来自你520的末班车 阅读(399) 评论(0) 推荐(0) 编辑
摘要: 今天在做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; 阅读全文
posted @ 2013-10-09 10:28 来自你520的末班车 阅读(171) 评论(0) 推荐(0) 编辑