write a program that reads a line from a file called quote.txt containing the text, a.b.c.d.e,f and write the uppercase version of that line in reverse to the output file named upquote.txt.
Then you are left with two additional steps.
a) convert to uppercase
b) reverse the string
You could use the function toupper() to convert a single character to uppercase http://www.cplusplus.com/reference/cctype/toupper/
To convert an entire string, you need to iterate through each character in turn.
To reverse the string - there are many approaches, for example iterating backwards through the string from the last character to the first.
To convert an entire string, you need to iterate through each character in turn.
That is to say, you need to use a loop to go through the string one character at a time. The first character is mystr[0]. The length of the string is mystr.size(). Loop from 0 to length-1.
please is there no way i can insert the uppercase get line in this mystr = toupper(mystr); am still very new and don't really know much about looping. Please just give me full illustration of how it look like if i want the upquote.txt to be in uppercase.
Use a for loop to go through each character in the string. If you don't know what that is then use the tutorial here under the section called The for loop.