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 percentage of the total mass of KHCO₃ is made up by nonmetallic elements?  a. 17%  b. 83%  c. 61%  d. 20%  e. 50%
Can someone help me on number 9 please?
Aluminum metal reacts with HCl to produce aluminum chloride and hydrogen gas. How many grams of aluminum metal must be added to an excess of HCl to produce 33.6
how do you round 9.92,3.99,2.14,8.39,2.79,8.48,2.96,5.34,and 4.52 to the nearest tenth.
Need help to Write 4.01 as a percent
how do you round 9.92,3.99,2.14,8.39,2.79,8.48,2.96,5.34,and 4.52 to the nearest tenth.
what is .8 repeating as a fraction
Aluminum metal reacts with HCl to produce aluminum chloride and hydrogen gas. How many grams of aluminum metal must be added to an excess of HCl to produce 33.6
Jim has three times as many comic books as Charles. Charles has 2/3 as many books as Bob. Bob has 27 books. How many comic books does Jim have?*
An innovative rural public health program is reducing infant mortality in a certain West African country. Pretend the program in Senegal has been reducing infa