码迷,mamicode.com
首页 >  
搜索关键字:源程序    ( 2315个结果
自考新教材-p352_1
源程序: #include <iostream>using namespace std;template <class T> class max{private: T x, y;public: max(T a, T b) { x = a; y = b; } T compare() { return ...
分类:其他好文   时间:2020-02-06 01:20:55    阅读次数:72
自考新教材-p350_3
源程序: #include <iostream>using namespace std;template <class T> void f(T a[],int n){ T t; for (int i = 0; i < n / 2; i++) { t = a[i]; a[i] = a[n-i-1]; ...
分类:其他好文   时间:2020-02-05 23:42:51    阅读次数:68
自考新教材-p350_2
源程序: #include <iostream>using namespace std;template <class T> class A{private: T x, y, s;public: A(T a, T b) { x = a; y = b; s = x + y; } void show() ...
分类:其他好文   时间:2020-02-05 23:36:13    阅读次数:70
自考新教材-p328_5(1)
源程序: #include <iostream>#include <fstream>using namespace std; class triangle{private: int a, b, c; double area;public: triangle(int aa, int bb, int c ...
分类:其他好文   时间:2020-02-05 20:31:04    阅读次数:72
自考新教材-p326_3(2)
源程序: #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 ...
分类:其他好文   时间:2020-02-05 18:37:33    阅读次数:68
自考新教材-p326_3(1)
源程序: #include <iostream>#include <fstream>using namespace std; int main(){ int i; ofstream ftxt1; ftxt1.open("c:\\tmp\\xt1.txt",ios::out); for (i = 1; ...
分类:其他好文   时间:2020-02-05 17:54:22    阅读次数:62
万字长文!Unix和Linux你不知道的那些历史(详解版)
作者 | 程序员小乐 来源 | 程序员小乐(ID:study_tech) 00 前言 UNIX 与 Linux 之间的关系是一个很有意思的话题。在目前主流的服务器端操作系统中,UNIX 诞生于 20 世纪 60 年代末,Windows 诞生于 20 世纪 80 年代中期,Linux 诞生于 20 世 ...
分类:系统相关   时间:2020-02-05 16:21:57    阅读次数:260
自考新教材-p301_5(1)
源程序: #include <iostream>#include <string>#include <iomanip>using namespace std; class student{private: string name1; float score1;public: int i; stude ...
分类:其他好文   时间:2020-02-05 13:40:38    阅读次数:67
自考新教材-p306
源程序: #include <iostream>#include <fstream>using namespace std;int main(){ ifstream inFile; inFile.open("c:\\tmp\\test.txt", ios::in); //以读的方式打开文本文件 if ...
分类:其他好文   时间:2020-02-05 13:32:40    阅读次数:73
自考新教材-p301_5(2)
源程序: #include <string>#include <iostream>#include <algorithm>using namespace std;int main(){ string str = ""; getline(cin, str, '\n'); reverse(str.beg ...
分类:其他好文   时间:2020-02-05 13:31:11    阅读次数:53
2315条   上一页 1 ... 12 13 14 15 16 ... 232 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!