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

What happens in the G2 phase of the cell cycle? The cell prepares for cell division. The replicated chromosomes divide. The cell enters the post mitotic phase.
A new car has a sticker price of $26,450, while the invoice price paid on it was $20,450. What is the percentage markup? a.10% b.29.3% c.13.36% d.11.36%
Based on the passage, predict what will happen to the Nez Perce Tribe?
What is n -7_> 2. ( p.s. that’s a greater than equal to sign_>)
In an essay, explain how the alliteration in "Full Fathom Five" helps convey the atmosphere of the poem. Think about where the poem is set and what is described
Which equation represents a circle with a center at (2, –8) and a radius of 11?
How many molecules of sulfur trioxide are in 78.0 grams?
Marcie is going on a skiing vacation and is comparing the prices at two resorts, Alpine Fliers and Bob's Ski Bums. Alpine Fliers do not have an admission fee, b
The loss of two major sources of income crippled the French economy right before the onset of the Great Depression. What were they? wine industry foreign touris
Engaging in regular physical activity is an important component of a weight-management or weight-loss program. in addition to the effects on weight, regular phy