上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 54 下一页
摘要: 源程序: #include <iostream>#include <fstream>using namespace std; int main(){ char k; int i; ofstream outf("c:\\tmp\\tem.dat",ios::trunc); outf << "Hello 阅读全文
posted @ 2020-02-05 18:47 bobo哥 阅读(190) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream>#include <fstream>using namespace std; int main(){ int i; ifstream f1("c:\\tmp\\xt1.txt",ios::in); fstream f2("c:\\tmp\\xt2.tx 阅读全文
posted @ 2020-02-05 17:34 bobo哥 阅读(150) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream>#include <fstream>using namespace std; int main(){ int i; ofstream ftxt1; ftxt1.open("c:\\tmp\\xt1.txt",ios::out); for (i = 1; 阅读全文
posted @ 2020-02-05 17:26 bobo哥 阅读(206) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream>#include <fstream>using namespace std; class CStudent{public: char id[11]; //学号 char name[21]; //姓名 int score; //成绩};int main( 阅读全文
posted @ 2020-02-05 14:52 bobo哥 阅读(206) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream>#include <fstream>#include <iomanip>using namespace std; class CStudent{public: char id[11]; //学号 char name[21]; //姓名 int scor 阅读全文
posted @ 2020-02-05 14:33 bobo哥 阅读(145) 评论(0) 推荐(0)
摘要: 源程序: #include <iostream>#include <fstream>#include <iomanip>using namespace std;class CStudent{public: char id[11]; //学号 char name[21]; //姓名 int score 阅读全文
posted @ 2020-02-05 13:52 bobo哥 阅读(117) 评论(0) 推荐(0)
摘要: 源程序: #include<iostream>#include<fstream>using namespace std;class CStudent{public: char id[11]; char name[21]; int score;};int main(){ char ch; cout < 阅读全文
posted @ 2020-02-05 13:48 bobo哥 阅读(135) 评论(0) 推荐(0)
摘要: 源程序: #include<iostream>#include<fstream>using namespace std;class CStudent{public: char id[11]; char name[21]; int score;};int main(){ CStudent stu; o 阅读全文
posted @ 2020-02-05 13:41 bobo哥 阅读(106) 评论(0) 推荐(0)
摘要: 源程序: #include<iostream>#include<fstream>#include<cstdlib>using namespace std;const int MAX_NUM = 1000;class CStudent{public: char id[11]; char name[21 阅读全文
posted @ 2020-02-05 13:34 bobo哥 阅读(149) 评论(0) 推荐(0)
摘要: 源程序: #include<iostream>#include<fstream>#include<iomanip>using namespace std;int main(){ char ch, filename[20]; int count = 0; bool newline = true; co 阅读全文
posted @ 2020-02-05 13:27 bobo哥 阅读(139) 评论(0) 推荐(0)
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 54 下一页