I\'m trying to turn a cout command into a getline command in c++.
This is my code that I\'m trying to changes....
for (int count=0; count < numberOfEm
Taking a look at the getline prototype, you'll see that you need two things:
istream object'\n'.In your case, it seems that the delimiter might be the default: '\n'; if not, you can specify what character separates each value (maybe it's a space ' ' or something). The cin stream would be you istream object, and each of the properties of employees[count] will serve as the second parameter. In summary, getline(cin, employees[count].name); should do the trick.