I would like to be able to declare a filename as a global constant (so I can change the input file easily), which seems to be a simple thing to do, but I can't seem to get it to work.
I declared this globally:
const string RES_FILENAME = "RESIDENTS.TXT";
Then I tried using it later on in program:
to which I get error messages about no matching function. I tried to enclose RES_FILENAME inside the function with ' (such as 'RES_FILENAME'), and I get an error message about converting from int to const char. I tried goggling the problem, but can't seem to find a solution. Any help would be appreciated. Thank you!