c++ "error: invalid conversion from ‘const char*’ to ‘char*’"
<p>I'm fairly new to C++ programming and I've been getting an error that I can't seem to figure out.  I've tried it many different ways and just get variations of the same error.  here is the error and my code:</p>

<pre><code> account.cxx: In member function ‘char* account::get_name() const’:                                                                                                                                                                     
 account.cxx:26: error: invalid conversion from ‘const char*’ to ‘char*’ 

          //File: account.h
 68     class account
 69     {
 70     public:
 71     typedef char* string;
 72     static const size_t MAX_NAME_SIZE = 15;
 73         // CONSTRUCTOR
 74     account (char* i_name, size_t i_acnum, size_t i_hsize);
 75     account (const account&amp; ac);
 76     // DESTRUCTOR
 77     ~account ( );
 78         // MODIFICATION MEMBER FUNCTIONS
 79     void set_name(char* new_name);
 80     void set_account_number(size_t new_acnum);
 81     void set_balance(double new_balance);
 82     void add_history(char* new_history);
 83     // CONSTANT MEMBER FUNCTIONS
 84     char* get_name ( ) const;
 85         size_t get_account_number ( ) const;
 86         double get_balance( ) const;
 87     size_t get_max_history_size( ) const;
 88         size_t get_current_history_size ( ) const;
 89         string* get_history( ) const;
 90         friend ostream&amp; operator &lt;&lt;(ostream&amp; outs, const account&amp; target);
 91     private:
 92     char name[MAX_NAME_SIZE+1]; //name of the account holder
 93     size_t ac_number; //account number
 94     double balance; //current account balance
 95     string *history; //Array to store history of transactions
 96     size_t history_size; //Maximum size of transaction history
 97     size_t history_count; //Current size of transaction history
 98     };


 1 // File: account.cxx
 2 // Author: Mike Travis
 3 // Last Modified: Feb, 26, 2012
 4 // Description: implementation of Account class as prescribed by the file account.h
 5 
 6 #include &lt;stdio.h&gt;
 7 #include &lt;iostream&gt;
 8 #include "account.h"
 9 
 10 using namespace std;
 11 //Constructor
 12 
 13 account::account(char* i_name, size_t i_acnum, size_t i_hsize){
 14 string *d_history = NULL;
 15 d_history = new string[i_hsize];
 16 
 17 for(int i = 0; i&lt;MAX_NAME_SIZE +1; i++){
 18     name[i] = i_name[i];
 19 }
 20 ac_number = i_acnum;
 21 history_size = i_hsize;
 22 history_count = 0;
 23 }
 24 
 25 char* account::get_name() const {
 26 return &amp;name;
 27 }
</code></pre>

<p>I haven't yet written the rest of the implementation file since I can't get around this error. </p>

<p>In line 26 of account.cxx I have tried several variations with no success.</p>
