Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Account
- {
- protected:
- char* FIO;
- long INN;
- available_privileges privileges;
- WalletList wallet;
- public:
- Account(string newFIO, long newINN);
- virtual ~Account();
- bool CreateWallet( char Currency[4] );
- void DeleteWallet( char Currency[4] );
- bool AddMoney( long Summ, Money Wallet );
- bool SendMoney( long INN, char Currency[4], long Summ, );
- };
- Account::Account (string newFIO, long newINN) {
- this.privileges = ordinary;
- this.wallet = NULL;
- this.INN = newINN;
- this->FIO = new char[newFIO.length + 1];
- strcpy( this->FIO, newFIO.c_str());
- }
- Account::~Account () {
- this.wallet.~WalletList();
- delete[] this->FIO;
- }
- Текст ошибки:
- g++ -c modules/account/account.cpp -o bin/account.o
- modules/account/account.cpp:5:1: error: ‘Account’ does not name a type
- Account::Account (string newFIO, long newINN) {
- ^~~~~~~
- modules/account/account.cpp:15:1: error: ‘Account’ does not name a type
- Account::~Account () {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement