Question: hey guys. i am having a problem with converting one-hundred 50 digit numbers from strings into integers. i can tell that each 50 digit string

hey guys. i am having a problem with converting one-hundred 50 digit numbers from strings into integers. i can tell that each 50 digit string is to large to convert into a 50 digit integer. please help...  hey guys. i am having a problem with converting one-hundred 50
digit numbers from strings into integers. i can tell that each 50
basically i need help trying to convert a 50 digit string into a 50 digit integer. i am having trouble because i use: int number = stoi(string) but all it does is print out a zero and i know its because since my number is 50 digits long its to big to convert so i need help with a way that convert such a big number. that is also all my code thats in main. the rest of the code above main is for my linked list i have set up.

1/ case 3: found the matching prev->next = curr->next; delete curr; int main() ifstream inFile; string Line; NodePtr head = nullptr; int number; infile.open(nums.txt); if(inFile.fail()) cerr

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!