Class BigInt Help

class BigInt
{
private:
bool true;
vector<int> value_;
int len_;
string number;

BigInt::BigInt(std::string digits)
{


this->sign_ = POS;
this->len_ = digits.length();
this->number = digits;


vector<int> v;


int n = len_;


int temp1 = 0;
while (n > 0) {
digits[n-1] = digits[n-1] - '0';
v.push_back = digits[n - 1];
n--;

}

this->value_ = v;


}

Need help about this,when i create a new object from this class somewhere
i lose the informations from constructor.. any 1 know why,and how to fix it
Last edited on
First, please use code tags, and give us actual errors; I have no idea what you mean by 'lose the informations from constructor'.

If you want someone to help, a modicum of effort should go into your question.

Off the top of my head, though, problems include naming a variable true, which is a reserved keyword, undeclared variables such as sign_ and POS, and having a private constructor.
Last edited on
Topic archived. No new replies allowed.