2018年6月19日
摘要:
实验七 11 7 include using namespace std; int main() { ios_base::fmtflags original_flags=cout.flags();//保存格式化参数 cout include using namespace std; int main
阅读全文
posted @ 2018-06-19 14:33
21222121212
阅读(122)
推荐(0)
2018年6月5日
摘要:
实验6 ABC main() ABC.h include using namespace std; class D { public: D(int m0,int n0):m(m0),n(n0) {} void add() { cout include"vehicle.h" int main() {
阅读全文
posted @ 2018-06-05 10:32
21222121212
阅读(136)
推荐(0)
2018年5月20日
摘要:
实验5 = = = = = = = = = = = = = = = = = = = = vector 类的实现 include "book.h" include include using namespace std; // 构造函数 // 补足程序 // ... Book::Book(string
阅读全文
posted @ 2018-05-20 09:39
21222121212
阅读(127)
推荐(0)
2018年5月10日
posted @ 2018-05-10 18:09
21222121212
阅读(93)
推荐(0)
2018年5月8日
摘要:
``` include include using namespace std; class Dice { public: Dice(int n); int cast(); private: int sides; }; Dice::Dice(int n) { sides=n; } int Dice:
阅读全文
posted @ 2018-05-08 22:36
21222121212
阅读(117)
推荐(0)
摘要:
期中考试 ================== 第一题 include include using namespace std; class Dice { public: Dice(int n); friend int cast(Dice &p1); private: int sides; }; D
阅读全文
posted @ 2018-05-08 11:41
21222121212
阅读(134)
推荐(0)
2018年4月22日
摘要:
实验4 =========== Grahp 类Grahp的声明 类Grahp的实现 运行结果 运行环境:DEV Fraction 类 类Fraction 的声明 类 Fraction 的实现 运行结果: 运行环境:DEV 这一次的实验让我对类与对象有了更加深入的认识,但还没到达熟练的程度,有很多简化
阅读全文
posted @ 2018-04-22 12:50
21222121212
阅读(347)
推荐(0)
2018年4月7日
摘要:
4 11: 源代码: include using namespace std; class Rectangle { public: Rectangle(double Newlength=0,double Newwidth=0) { length=Newlength,width=Newwidth; }
阅读全文
posted @ 2018-04-07 19:32
21222121212
阅读(126)
推荐(0)
2018年3月21日
摘要:
2 28 1 用if语句: include using namespace std; int main() { while(true) { char a; cout a; if(a=='A') { cout using namespace std; int main() { while(true)
阅读全文
posted @ 2018-03-21 19:57
21222121212
阅读(115)
推荐(0)
2018年3月13日
摘要:
2 4 运行结果: 2 6 运行结果: 实验总结与体会: 这是首次放弃上学期学习的c语言,改用c++进行编程。在编程过程中,大部分使用的算法与语句与上学期使用的差不多,但是特别的是使用了新的输入输出语句和运算符。2 4的编程运行一次通过,还算完美,但是编程2 6时,失败了一次,但很快就从中找出了问题
阅读全文
posted @ 2018-03-13 19:57
21222121212
阅读(102)
推荐(0)