原创 第十章編程練習(6)
#pragma once #ifndef ff_H_ #define ff_H_ class Move { private: double x; double y; public: Move(double a = 0,double
原创 第十章編程練習(4)
ff.h #pragma once #ifndef ff_H_ #define ff_H_ namespace SALES { class Sudio{ private: static const int QUARTER =
原创 第十章編程練習(5)
ff.h#pragma once #ifndef ff_H_ #define ff_H_ struct customer { char fullname[35]; double payment; }; typedef customer
原创 第十一章編程練習(4)
list.h # pragma once # ifndef list_H_ # define list_H_ #include <iostream> class Time { private: int hours; int minut
原创 第十四章編程練習(4)
PERSIN.h #pragma once #ifndef PERSON_H_ #define PERSON_H_ #include <iostream> class Person { private: std::string fnam
原创 第十二章編程練習(6)
頭文件和實現函數和上一題一樣,這裏就不列出來了 這裏是理想化的,也就是剛好上一名顧客的處理時間還剩1分鐘時,就馬上有顧客進入隊列 當兩臺ATM的顧客剩餘處理時間都是1分鐘時,就有兩名顧客分別進入第一和第二個隊列 main.cpp #inc
原创 第十一章編程練習(3)
list.h #pragma once #ifndef list_H_ #define list_H_ #include <iostream> namespace VECTOR { class Move { public: en
原创 第十章編程練習(1)
ff.h#pragma once #ifndef ff_H_ #define ff_H_ #include <string> using namespace std; const int MAX = 6; class Sudio { s
原创 第十一章編程練習(1)
list.h #pragma once #ifndef list_H_ #define list_H_ #include <iostream> namespace VECTOR { class Move { public: en
原创 第十章編程練習(3)
ff.h #pragma once #ifndef ff_H_ #define ff_H_ const int MAX = 20; class Sudio { private: struct golf { char fullname
原创 第十章編程練習(7)
ff.h #pragma once #ifndef ff_H_ #define ff_H_ class Plorg { private: char name[19]; int cl; public: Plorg(char p_nam
原创 第十一章編程練習(2)
list.h #pragma once #ifndef list_H_ #define list_H_ #include <iostream> namespace VECTOR { class Move { public: en
原创 第九章編程練習(3)
#include <iostream> #include <cstdlib> using namespace std; struct chaff { char dross[20]; int slag; }; const int dat
原创 第十章編程練習(2)
ff.h #pragma once #ifndef ff_H_ #define ff_H_ #include <string> using namespace std; class Person { private: static co
原创 第十一章編程練習(7)
complex0.h #pragma once #ifndef complex0_H_ #define complex0_H_ #include <iostream> class complex { private: double s;