0

I'm a beginner c++, I'm trying to write a program that checks if a record in a file already exists or not through a flag variabl

Here is the code: room.read((char*)&rm, sizeof(rm)); while(!room.eof() || flag==0){ if(rm.roomID==r){ flag=1; }else{ flag=0; } } if(flag!=1){ rm.roomID=r; rm.get_record(rm.roomID);

23rd Aug 2022, 6:44 PM
Vick
Vick - avatar
1 Réponse
+ 1
do you still need help lol
24th May 2023, 3:54 AM
Dakota
Dakota - avatar