Hello, i have one question for reading from file.
I get data from file ulaz.txt and i want to data in there would be stored like
some text;1934
text 2;2342
for now its stored like
sometext 1934
text2 2342
so i want to be able to use space between text and still be able to write that text into one variable called naziv_student.
Thank you in advance, if i am not clear just say and i will do my best to explain.
P.S. Sorry for my bad english
struct student{
string naziv_student;
int visina;
};
student studenti[100];
void uzimanjeDat(){
ucitano=true;
ifstream datoteka;
datoteka.open("ulaz.txt");
while(!datoteka.eof()){
datoteka >> studenti[brojac].naziv_student >> studenti[brojac].visina;
brojac++;}
}