Hey guys I'm new here. Anyway. I have been trying to figure out how to do this for a while now. Without flat out just giving me the answer can you explain to me how this is accomplished?
I know what a string literal is. What the program is supposed to do is scan a source code file and print out all of the strings to the console. It also has to print the line number.
wow, and to think that this is only the second assignment I've had in my c++ class. Anyway, how can I get started? I basically want to output anything that is in between quote but I do not know how to test for that. Maybe do an if (ch=='"') and then inside the if statement have while (ch != '"')
okay I am really close to being done now I think! At the moment I have the entire source code being printed with the line numbers and everything. Now I only need to know one more thing.
After using getline, how can I scan each character so that I can check for a quotation?
okay I am really close to being done now I think! At the moment I have the entire source code being printed with the line numbers and everything. Now I only need to know one more thing.
After using getline, how can I scan each character so that I can check for a quotation?
okay I am really close to being done now I think! At the moment I have the entire source code being printed with the line numbers and everything. Now I only need to know one more thing.
After using getline, how can I scan each character so that I can check for a quotation?
okay I am really close to being done now I think! At the moment I have the entire source code being printed with the line numbers and everything. Now I only need to know one more thing.
After using getline, how can I scan each character so that I can check for a quotation?