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

20 points! Which sentence contains an adverb clause? A. Mom put the leftovers in the refrigerator for tomorrow's lunch. B. My mom grows many kind
Good drama: ______. Select all that apply. celebrates life criticizes life denies life interprets life reflects life
what does the presidential power of veto allow
20 points! Which sentence contains an adverb clause? A. Mom put the leftovers in the refrigerator for tomorrow's lunch. B. My mom grows many kind
what is 14ft 10 in converted to inches
which type of government structure are school districts an example of?
The following is NOT part of our bodies defense mechanism for infectious disease: A. mucous membranes B. red blood cells C. white blood cells D. antibodies
What is the definition of physical fitness?
.4. What is the range of the data set? 214 83 106 99 83 155 175
A mover hoists a 200 kg piano from the ground to a height of 10 m using a single pulley. What was the change in the pianos energy? a. 20j b. 200j c.