c++ - assignment operator doesnt work -


i have constructor represent big numbers , store them vector: class composed of vector, boolean , int , supposed represent big numbers.

    cbigint(const char* str2) {     string str=string(str2);     num.resize(200000);     if (str[0]=='-')      {         signe=true;          pos=str.length()-1;         (int i=pos;i>0;i--)         {             num[pos-i]=str[i]-48;         }     }     else     {         signe=false;          pos=str.length();         (int i=pos;i>=0;i--)         {             num[pos-i-1]=str[i]-48;         }     }        } 

and error: http://pastebin.com/cy82xalf

declare , implement additional constructor on top of 1 have:

cbigint::cbigint(const char* str):cbigint(string(str)){} 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -