C++
文章平均质量分 64
ChristopherSTAN
这个作者很懒,什么都没留下…
展开
-
大一下学期复习期中考
1、文件的输入输出:fstream infile ofstream outfile; int income, tax; infile.open(“FILENAME1”); // open the files outfile.open(“FILENAME2”); while ( infile >> income ) { if ( income原创 2014-05-10 10:34:36 · 592 阅读 · 0 评论 -
list用法
List将元素按顺序储存在链表中. 与 向量(vectors)相比, 它允许快速的插入和删除,但是随机访问却比较慢.list对象函数assign() 给list赋值 back() 返回最后一个元素 begin() 返回指向第一个元素的迭代器 clear() 删除所有元素 empty() 如果list是空的则返回true end() 返回末尾的迭代器 erase()原创 2014-05-18 16:47:50 · 497 阅读 · 0 评论 -
C++的异常处理初步学习
异常处理的预习原创 2014-05-18 16:44:06 · 493 阅读 · 0 评论 -
C++的异常处理
一、什么是异常处理一句话:异常处理就是处理程序中的错误。转载 2014-05-18 16:39:36 · 431 阅读 · 0 评论 -
calculator
There is a class named Calculator. It has a member function getResult() which can calculate the value of the expression. Please complete the design and implementation of the class.Something you shou原创 2014-06-06 21:48:56 · 588 阅读 · 0 评论