随笔分类 - 其他 大一玩耍程序
摘要:1 /* 2 8 6 3 1 1 1 1 1 1 1 1 4 1 0 0 1 0 0 1 1 5 1 1 0 0 0 0 0 1 6 1 0 0 1 0 1 0 1 7 1 0 0 0 0 0 0 1 8 1 1 1 1 1 1 1 1 9 */ 10 #include <iostream> ///
阅读全文
摘要:程序效果: 1 #include 2 #include 3 using namespace std; 4 5 class robot{ 6 string name; 7 string type; //型号 8 public: 9 robot(string name = "xxx",string type = "xxx") : name(name...
阅读全文
摘要:1 //Date.cpp 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 //Date_class 8 class Date 9 { 10 private: 11 int year, month, day; 12 int week; ...
阅读全文
摘要:/*---------------------------WB------BW---------------------------*/ //tab1.txt/---------------------------WB------BW-------W-------------------*/ //tab2.txt 1 #include 2 #include 3 #include ...
阅读全文
摘要:1 /** 2 *注:1.有一个bug(以及未知什么bug) 我已知的是: (a@b)(ps:@为运算符),这种带括号的表达式不能单独的出现,否则异常退出,,但是只要(a@b)@n 3 4 带括号的表达式出现任意+,-,*,/的运算都能进行正常运算(前面 n@(a@b)也不可以)。。。不知道为什么()表达式后面没有操作时会异常退出。 5 *不知道如何解决。希望感兴趣的人帮帮...
阅读全文