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 is 1 1/4 Minus 3/8
1.) You need to buy grass seed for a new lawn. The lawn will cover a rectangular plot that is 60 feet by 90 feet. Each ounce of grass seed will cover 120 square
why is the palace at Linlithgow now in ruins a. it was on a small island in the loch b. queen Mary was born there c. it was destroyed to prevent visitors d. so
Can someone please help me, thanks!!
You deposit $500 into a savings account that earns 7% simple interest for 10 years. What is the Principal? What is the rate and rate as decimal? What is Time?
A piece of art paper is 1 1/2 inches wide and 4 inches long.What is the area of the paper
Every contact at a crime scene both leaves and ____ evidence
Cameron opens a checking account and a savings account at his local bank. He deposits $10,000 into his checking account and $2,000 into his savings account. He
Name the type of volcano illustrated in diagram C and describe how it forms.
An elevator was a full mass of 2400 kg has a power rating on 16.5 horsepower how much time will it take the elevator to lift a full load 12 meters if there is 1