阅读背景:

《C++ Primer Plus(第六版)》(17)(第十章 对象和类 编程题答案)

来源:互联网 

10.10编程题

1.

Test.h

#ifndef _Test_H_
#define _Test_H_
#include <iostream>
#include <string>
using namespace std;

class Account
{
public:
	Account(const string& name, const string& id, double money);
	void show();
	void add(double m);
	void decrease(double m);
private:
	string _name;
	string _id;
	double _money;
};


#endif#ifndef _Test_H_
#d



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: