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

three divided by 42 showing long division way
A patient presents to the emergency department with the complaint of vomiting and diarrhea for the past 48 hours. The nurse anticipates which fluid therapy ini
Que venden en el cine?
If you can travel from Orlando to Miami (240 miles) in 4 hours; how long would it take you to travel from Ft. Lauderdale to Tallahassee (420 miles)?
You can feed a(n) a. ocular. b. gauche. c. pachyderm. d. hypodermic
On James’s MP3 player, he has 12 sad songs and 40 upbeat songs that he wants to put into playlists. He wants to have the same number of sad songs and upbeat son
I solid iron ball of mass 770kg is used on a building site. The ball is suspended by a rope from a crane. The distance from the point of suspension to the centr
What is the standard form equation of the line shown below? Graph of a line going through negative 1, 1 and 1, 4 −3x + 2y = 5 3x − 2y = −5 y − 4 = three halv
When is the most likely time for a female to become pregnant during her menstrual cycle? on the first day of her period on the last day of her period about a we
Read the passage. This morning I was lying on Peter's bed, having chased him off at first. He was FURIOUS with me, not that I cared very much. He might be a b