随笔分类 - C++学习
摘要:#include using namespace std; #define SIZE 5 class complex { public: int real; int imag; public: inline int complex::operator (const complex &c) { return real > c.real; } }; ...
阅读全文
摘要:通过运用ofstream和ifstream类去创建对象来进行文件读写。 使用文件流新建或打开一个文件,并写入字符串 "This is a test file". 使用文件流将创建的文件test.txt.中的所有数据读取出来。 使用ifstream类成员函数seekg,结合文件输入输出流,写的一个wa
阅读全文
摘要:转载于:http://blog.csdn.net/morewindows/article/details/6684558 该方法的基本思想是: 1.先从数列中取出一个数作为基准数。 2.分区过程,将比这个数大的数全放到它的右边,小于或等于它的数全放到它的左边。 3.再对左右区间重复第二步,直到各区间
阅读全文
摘要:#include #include #include using namespace std; struct node { int data; node *pre; node *next; }; void outputList(node *); void findData(int, node*); node * insertData(int , node *); nod...
阅读全文
摘要:1001: 类的设计(1)Time Limit: 1 SecMemory Limit: 65535 MB 64bit IO Format: %lldSubmitted: 9Accepted: 7[Submit][Status][Web Board]Description设计clock类,成员数据包含...
阅读全文

浙公网安备 33010602011771号