摘要:
#include <iostream> using namespace std; enum myColor { BLACK, WHITE }; class Mammal { public: //constructors Mammal(); ~Mammal(); //accessors int get 阅读全文
摘要:
#include<iostream> using namespace std; class Clock { public: Clock(); void setTime(int newH, int newM, int newS); void showTime(); private: int hour, 阅读全文
摘要:
#include<iostream> using namespace std; #include<string> class people { public: void setValue(int m, string str) { age = m; name = str; } void display 阅读全文
摘要:
#include<iostream> using namespace std; int i = 1; void other() { static int a = 2; static int b; int c = 10; a += 2; i += 32; c += 5; cout << " OTHER 阅读全文