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

Counsuela is three times as old as Mary. In 10 years she will be only twice Mary's age. How old was Councuela 4 years ago?
What is the equation of a line passing through (3, 4) and having a slope of -5? y = 5x + 19 y = -5x + 11 y = -5x + 19
If two dice are rolled, what is the probability that one of them shows a 6 and the sum of the dice is an odd number? 1/6 5/36 1/12 1/4
prewriting is valuable because it
Is y=arcsec(1) equivalent to 0? Thanks!
if a wave has a velocity of 24 m/s and a period of 3.0 s. what is he frequency of the wave i
true or false The Dutch enjoyed bowling, ice skating, and sledding.
a drug concentration of 228 mg per 10 ml how many ml are needed to give 2 grams of the drug
The use of submarines during World War I had which of these effects? It gave an advantage to the coastal nations. It made naval battles the key battles of the w
Which of the following describes the main reason the Spanish conquistadors needed Native American slaves?