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

aluminum has a density of 2.70 g/mL. Calculate the mass (in grams) of a piece of aluminum having a volume of 344 mL
1. The study of how living organisms interact with other living and non- living things in the environment is called: a. energy b. biodiversity. C. sustainabilit
fill the blank spaces with suitable terms a heat energy from bottom to the top of atake is​
Mustufa ran the 100-meter and 200-meter races but the one he had trained for the hardest was the 400-meter competition. Which is the best revision of this sente
Sprains and strains are common fitness injuries. Which of the following could be considered a strain? A) A twist to a muscle B) A pull of a joint C) A tear of t
If I walk 30 m north and turn around and walk 10 m to the south, what is the magnitude of my displacement in meters?
The skier moved ____.
Each wholesale bag of flour is sold in 25kg bags. Using this information, calculate a new column of data of that works out how many kilograms in total were sold
6x - 2 < 5x + 7 I DID THIS AND GOT -9 BUT THE ANSWER IS 9 WHAT DID I DO WRONG
Let f(x) = 8x3 + 16x2 − 15 and g(x) = 2x + 1. Find f of x over g of x. WILL GIVE BRAINLIEST!