shfrlc3257 shfrlc3257
  • 23-08-2017
  • Computers and Technology
contestada

Write a function called printbackwards() that will work with a c++ string

Respuesta :

tonb
tonb tonb
  • 23-08-2017
There is a standard reverser that will work for this:

void printbackwards(string s)
{
   reverse(s.begin(), s.end());
   cout << s;
}


Answer Link

Otras preguntas

Define product. Give an example of two whole number factors with a product of 9.
all living things perform synthesis reactions which are necessary for life. some of this includes breaking down what?
2+(65+7)x3 evaluate the numerical expression
A student evaluated -4+x for x= -9 1/2 and got the answer 5 1/2 what did the student do wrong
Use the formula for the area of a rectangle A = lw to answer the question. A rectangle has a width of n units. Its length is 4 units longer than the width. A.
Using properties to find the sum or product
Who were the main people responsible for the stamp act?
Which sentence uses the denotation of the word heart? A.Her heart was in the right place. B.The heart pumps blood in the body. C.He knows the song's words by he
What is the purpose of a Punnett square?
Danny is unhappy with himself for not landing his dream job a couple of weeks ago. His self-confidence is extremely low, and he wonders if he'll ever get the jo