Skip to main content
Stack Overflow for Teams is now Stack Internal: See how we’re powering the human intelligence layer of enterprise AI. Read more >
7 events
when toggle format what by license comment
May 27, 2020 at 15:48 vote accept Reno
May 26, 2020 at 16:52 comment added NathanOliver They don't need a different name. You're storing a copy of it in the vector, so you can reuse the same object to add each element into the vector
May 26, 2020 at 16:51 answer added cigien timeline score: 4
May 26, 2020 at 16:51 comment added NathanOliver You should also replace while( inStream.peek() != EOF ) with while (inStream >> nameInput >> num1 >> num2 >> num3;). See this for why: stackoverflow.com/questions/5605125/…
May 26, 2020 at 16:51 comment added Reno How does each struct have a different name then?
May 26, 2020 at 16:50 comment added NathanOliver rewmove all of the [i]'s in your code. You only need a single person in the for loop, not an array of them.
May 26, 2020 at 16:48 history asked Reno CC BY-SA 4.0