array of strings
I am new to this website.I am weak in c++ and need yur help.:(
here is my question.
1) Write a program to read an array of strings and print its contents backwards. For ex: the array of strings is
Then the program should print “World Programming Hello”
- write a program that reads one string, and print it?
- write a program which reads an array of strings, and prints it forwards?
If you can do these things, then that goes a long way to making us think you're attempting your own homework, and not just dumping it on a forum for someone else to do.
If you can't do these simple steps, then we have some other things which need to be explained before we get to the complicated bit of printing in reverse.
just cin the strings and then cout them in a for loop with a decreasing integer, you will also need a way to cin them without ignoring spaces, i recomend multiple char arrays and getline
No char arrays! Period.
And let's let the OP show some effort first.