my text file include
cout<<"Enter ID number: ";
if(ID == line)
for (int i = 0; i < 5; i++)
cout << line << endl;
I have complete search id coding. The problem how can i search for second row which is name.
I have tired use back the same coding but only can display name, ic, gender and dob.
Read in 5 lines at a time
assign lines to: id, name, ic, gender, dob
Then you can look for smith, who is female/male.
Another way would be combine the 5 lines into one string.
I'm a beginner can you show me how to combine?