When I debug the program, I see that some indices have the value '', which I think is a blank index (not even a white space). I want to be able to check for these occurrences and change the '' to a white space " ". How can I do this? I've tried:
a char cannot contain nothing. If you're seeing '', it could be 0 or some other unprintable char. If you can, cast it to integer to see what the numeric value is and compare to that.
As a little note, " " is really a const string of text. By typing std::cout << "blah" you are really printing out a constant pointer to char(string), because you cant modify what in the quotations(you would just create another one!). You are trying to assign a string " " to the vector CHAR. You would want to use ' '