title: How to create a copy constructor and use a constructor as a function argument
body: <p>at the beginning I would like to appologize for the title of this thread. I was not sure about it, so I will explain what I would like to achieve.
  Lets get started :)</p>
  
  <p>My code:</p>
  
  <pre><code> class CCompany
   {
     public:
          CCompany(void);  // Default constructor
          CCompany(const CCompany &amp; b);  // Copy constructor
          bool NewAccount(const char * AccountID, int initialBalance);
          bool NewTranscation(const char * AccountID_SendFrom, const char * AccountID_SendTo, amount);
          CCompany ShowAllTransactions(const char * AccountID); // Function that shows all the transactions of the selected account
          int Balance(); // Shows actual account
          ...
          ...
          ...
      private:
            struct Transcaction
            {
              char AccountID[100];
              int InitialBalance;
              int ActualAccount;
              int *transactionAmount;
              int transactionCounter; 
            };
            Transcaction Transcactions[10000];
  }
  
  
  int main ( void )
  {
  CCompany c0;
  assert(c0.NewAccount( "11111", 200 ));
  assert(c0.NewAccount("66666", -600 ));
  assert(c0.NewTranscation( "66666", "11111", 1000 ) );  // After this transaction&gt;&gt;&gt;  11111: 1200, 66666: -1600
  assert(c0.Account( "66666" ).Balance() == -1600 );
  
  }
  </code></pre>
  
  <p>First of all, I would like to say that we cannot use STL, nor string, so vector or other STL containers are not possible to use. I choose struct array for the purpose of the task. If you have a better suggestion, just let me know. Also, we cannot use strings, but char array. It is perhaps because of learning how to allocate correctly memory, copy char array..</p>
  
  <p>Anyway, I would like to ask two questions:</p>
  
  <p>1) how to create a copy constructor for this class</p>
  
  <p>2) I am not sure about this "assert ( x0 . Account ( "32322" ). Balance ( ) ==  -1600 );"
  How to create a function Account which output goes to the input of the Balance() function.</p>
  
  <p>Thank you in advance.</p>