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);
1 Antwort
+ 1
do you still need help lol