摘要: 源程序: #include <iostream> #include <fstream> //包含文件操作的头文件 using namespace std; void main() { ifstream txt1("c:\\TEST.txt"); //建立输入文件对象指针txt1,指向文件"TEST. 阅读全文
posted @ 2019-11-20 20:18 bobo哥 阅读(320) 评论(0) 推荐(0)
摘要: 源程序: #include < iostream > #include < fstream > #include < cmath > #include < vector > #include < iomanip > #include < string > using namespace std; c 阅读全文
posted @ 2019-11-20 20:04 bobo哥 阅读(2431) 评论(0) 推荐(0)
摘要: 源程序: #include < iostream> #include < fstream > using namespace std; void main() { char *p = "C++程序设计" ; ofstream myFile("c:\\C++_9_5_2.txt"); //在工程文件的 阅读全文
posted @ 2019-11-20 19:34 bobo哥 阅读(262) 评论(0) 推荐(0)
摘要: 源程序: #include < iostream > #include < string > #include <iomanip> using namespace std; class Student //定义学生类 { private: string name; //学生姓名 float scor 阅读全文
posted @ 2019-11-20 19:25 bobo哥 阅读(414) 评论(0) 推荐(0)