bigPosInteger::bigPosInteger(int value)
/*this instructor takes in an integer and constructs it into a bigPosInteger type*/
{
int count=0;
if(value<0) {
count =1;
}
while(value){
value /=0;
count++;
}
valueArray= new int[count];
}
I am not sure if I am doing this right. valueArray is a private member function in the class bigPosInteger.
Aucun commentaire:
Enregistrer un commentaire