Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

OK so I had to get a file with 100 Numbers each containing 50 digits. As you can see what I print out first is

OK so I had to get a file with 100 Numbers each containing 50 digits. As you can see what I print out first is all the numbers I got from the file using get line function. I had to convert each 50 digit number into an integer which I was successful at doing. My issue is once I converted all the digits into integers it is now reading all of the 100 50 digit Numbers as one whole number it's self. Can somebody help me split this huge number back into 100 50 digit numbers. image text in transcribed
image text in transcribed
image text in transcribed
JL I ULUULULLUMLUPUJ LWUAALULUCILIUL DIL SLIDELU 37187287533902102798797998228837590246510135748250 46376937677498069712648124896970078058417818260538 74324986199524741059474233389513858123726617309629 91942213363574161572522438563381811072486154968250 23067588287539346171171988318421047513778863246676 89261676696623633820136378418383684178734361726757 28112879812849979488065481931592621691275889832738 44274226917432520321923589422876796487670272189318 47451445736801306439091167216856844588711603153276 78386486105843025439939619828917593665686757934951 6217645714185656062956215722319658675507932-193331 64966352462741964929101432445813822663347944758178 92575867718337217661963751598579239728245598838487 58203565325359399008402633568948830189458628227828 80181199384826282014278194139948567587151170994390 35398664372827112653829937240784473053190164293586 86515506806295864861532e75273371959191428517255829 71693888787715466499115593487683532921714970056938 54378076576826684624621495656076471787294438377604 53282654168756828443191190634694637855217779295145 36123272525100296e71e75882563815656718885258350721 45876576172416976447339116607218263236877223636845 1742370690585 1860660448207621209813287860733969412 81142664418686830619328466811191061556948512689692 51934325451728388641918647849293215658642563049483 62467221648435076201727918039944693004732956340691 15732444386908125794514089057706229429197167928209 55037687525678773991862540744969844568338393682126 18336384825330154686196124348767681297534375946515 80386287592878498201521685554828717201219257766954 78182833757993103614748356856449095527097864797581 16726320100436897842553539920931837441497806860984 48403898129877791799888218795327364475675590848630 87886987551392711654517878544161852424320693156332 59959486895756536782107074926966537676326235447210 69793956679652694742597789739166693763042633987085 41052684788299085211399427365734116182768315001271 653736e7361561680857099149939512557028198746004375 35829035317434717326932123578154982629742552737307 94953759765165385946966667683156574377167401875275 88902882571733229619176668713819931811848770199271 25267680276078003013678689992525463401661632866526 36270218548497705585629946580636237993140746255962 24074436908231174977792365466257246923322810917141 91430288197103288597886669768892938638285625333403 34413065578816122815921815B05561868836468420096470 23853881172816430487623791969842487255036638784583 11487696932154902810424020138335124462181441773470 63783299498636259666498587618221225225512486764533 67728186971698544312419572489913959068952316058822 95548255300263520781532296796249481641953868218774 76885327132285723110424803456124867697064507995236 37774242535411291684276865538926205024910326572967 23701913275725675285653248258265463092207058596522 29798860272258331913126375147341994889534765745501 18495741454879288984856822226472213721463798829215 MONSI EDIAS SIMI E 732001200244530303030303. 18407 4002303327400011136 140 1 421030430051411 6400 LEEVE S SEM 112 13541142122422543544343 BAZAAR ENI DIRELESS N NAHREENIMIS ACESTMENINI . . . int main() ifstream inFile; string line; NodePtr head = nullptr: unsigned int number; infile.open("nums.txt'); if(infile.fail()){ cerr "Error unable to open file!"

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases And Information Systems 1 International Baltic Conference Dbandis 2020 Tallinn Estonia June 19 2020 Proceedings

Authors: Tarmo Robal ,Hele-Mai Haav ,Jaan Penjam ,Raimundas Matulevicius

1st Edition

303057671X, 978-3030576714

More Books

Students also viewed these Databases questions

Question

8-6 Who poses the biggest security threat: insiders or outsiders?

Answered: 1 week ago