Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started