摘要:
#include<iostream> using namespace std; int main() { ios_base::fmtflags original_flags=cout.flags(); //(猜测) 声明fmtflags 类型变量 original_flags,用此时的输出格式初始化
阅读全文
posted @ 2018-06-20 23:53
ikazuchi
阅读(111)
推荐(0)
摘要:
#include<iostream> #include"core_parent.h" #include"core_A.h" #include"core_B.h" #include"core_C.h" using namespace std; /* run this program using the
阅读全文
posted @ 2018-06-06 21:21
ikazuchi
阅读(181)
推荐(0)
摘要:
#include <iostream> #include <vector> #include <string> using namespace std; // 函数声明 void output1(vector<string> &); void output2(vector<string> &); i
阅读全文
posted @ 2018-05-22 21:16
ikazuchi
阅读(161)
推荐(0)
摘要:
#include<iostream> #include<string> #include<vector> #include<stdlib.h> #include"User.h" using namespace std; /* run this program using the console pa
阅读全文
posted @ 2018-05-09 16:25
ikazuchi
阅读(248)
推荐(0)
摘要:
#include<iostream> #include<ctime> #include<stdlib.h> using namespace std; class Dice { public: Dice():sizes(40){srand((unsigned)time(0));}; Dice(int
阅读全文
posted @ 2018-05-08 11:43
ikazuchi
阅读(165)
推荐(0)
摘要:
#include <iostream> #include "graph.h" using namespace std; int main() { Graph graph1('*',5), graph2('$',7) ; // 定义Graph类对象graph1, graph2 graph1.draw(
阅读全文
posted @ 2018-04-23 22:24
ikazuchi
阅读(181)
推荐(0)
摘要:
#include<iostream> using namespace std; class square { public: square(int x1,int y1); //x1,x2为自定义长宽 int getchang() {return x;} //用于输出长 int getkuan() {
阅读全文
posted @ 2018-04-07 19:50
ikazuchi
阅读(176)
推荐(0)
摘要:
2-28 (1) #include<iostream> using namespace std; int main() { cout<<"Menu:A(dd) D(elete) S(ort) Q(uit) Select one:"; char a; for(;1;) { cin>>a; if(a==
阅读全文
posted @ 2018-03-25 15:13
ikazuchi
阅读(140)
推荐(0)
摘要:
#include<iostream> using namespace std; int main() { int date; cin>>date; switch(date) { case 1: case 2: case 3: case 4: case 5:cout<<"workday let us
阅读全文
posted @ 2018-03-13 19:49
ikazuchi
阅读(176)
推荐(0)