Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, I have a problem regarding a c++ program I am writing for class. I have a text file that looks like this: Infectious:1 Recovered:2

Hello, I have a problem regarding a c++ program I am writing for class. I have a text file that looks like this: Infectious:1 Recovered:2 Display:2 s,s,s,s,s,s,s,s,s,s s,s,s,s,s,s,s,s,s,s s,s,s,s,s,s,s,s,s,s s,s,s,s,s,s,s,s,s,s s,s,s,s,i,i,s,s,s,s s,s,s,s,i,i,s,s,s,s s,s,s,s,s,s,s,s,s,s s,s,s,s,s,s,s,s,s,s s,s,s,s,s,s,s,s,s,s s,s,s,s,s,s,s,s,s,s I need to get the integers from the first 3 lines and store the on separate ints, and then need to store the list after that into a vector. I am confused on how I should store the data line by line, while ignoring everything but the number.

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

More Books

Students also viewed these Databases questions

Question

Tell the merits and demerits of Mendeleev's periodic table.

Answered: 1 week ago

Question

=+ Have they changed the way employers view IP?

Answered: 1 week ago