I just need a quick answer.
I have a simple program that reads names from a txt file, but I don't know how to get to read the next name.
Code:#include <iostream>
#include <fstream>
#include <string>
using namespace std;
float average;
int main()
{
ifstream infiledudes;
string name;
infiledudes.open( "people.txt" );
infiledudes>>name;
cout<<"your name is"<<name;
}