Advertisement
DmitryPythonDevelop

Untitled

Apr 3rd, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.98 KB | None | 0 0
  1. class Account
  2. {
  3.     protected:
  4.         char* FIO;
  5.         long INN;
  6.  
  7.         available_privileges privileges;
  8.  
  9.         WalletList wallet;
  10.     public:
  11.         Account(string newFIO, long newINN);
  12.         virtual ~Account();
  13.  
  14.         bool CreateWallet( char Currency[4] );
  15.         void DeleteWallet( char Currency[4] );
  16.  
  17.         bool AddMoney( long Summ, Money Wallet );
  18.         bool SendMoney( long INN, char Currency[4], long Summ,  );
  19. };
  20.  
  21. Account::Account (string newFIO, long newINN) {
  22.     this.privileges = ordinary;
  23.     this.wallet = NULL;
  24.  
  25.     this.INN = newINN;
  26.  
  27.     this->FIO = new char[newFIO.length + 1];
  28.     strcpy( this->FIO, newFIO.c_str());
  29. }
  30.  
  31. Account::~Account () {
  32.     this.wallet.~WalletList();
  33.     delete[] this->FIO;
  34. }
  35.  
  36. Текст ошибки:
  37. g++ -c modules/account/account.cpp -o bin/account.o
  38. modules/account/account.cpp:5:1: error: ‘Account’ does not name a type
  39.  Account::Account (string newFIO, long newINN) {
  40.  ^~~~~~~
  41. modules/account/account.cpp:15:1: error: ‘Account’ does not name a type
  42.  Account::~Account () {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement