i want the code to print a string on the screen without space by reading from a file.String stored in the file contains space character.
In the print routine, just don't print the character if it's a space.
sorry... I want to read the string without a space for comparison.
Read into a string then copy that string to a new string, character-by-character, omitting any spaces.
please give me the code for that
am using Turbo c++
TBH, if you can't write the code for that you should be pursuing a different hobby (or, more likely, a different course). Computer programming just isn't your thing. Do yourself a favour and try to do it by yourself.
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |