Printable View
Quote: Originally Posted by Furious5k Nevermind, thank you C_ntua. But I now receive an error " no match for `string & == int' " Perhaps because you are trying to compare a string with NULL? Which is not the right thing to do, I'd say. Perhaps comparing with "" is better? -- Mats
Thank you.
Quote: Originally Posted by Furious5k Code: if (Loans[i].Book == 0) doesn't work either. I'm stumped as to how I can check if a string array has an empty location. Yes, that's EXACTLY the same as == 0, as NULL is a macro that expands to 0. See my previous post for a suggestion. -- Mats
if (Loans[i].Book == 0)