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

Who is the father of psychology
∠ABC measures 124° and ∠MNO measures 56°. Therefore, the two angles are A) complementary. B) supplementary. C) congruent. D) vertical.
plz answer this question about Charlotte Doyle from " The True confessions of Charlotte Doyle": name the character traits of Charlotte Doyle,and what kind of gi
What are the key similarities between Leo Tolstoy’s The Death of Ivan Ilyich and Edvard Munch’s painting The Scream? Both works are a depiction of the difficult
The study of governments and their boundaries is called __________
Electromagnetic radiation that has a short wavelength will have a ________ frequency. A. fast B. slow C. low D. high
A cylindrical cardboard mailing tube has a diameter of 5 in. and a height of 30 in. A total of 30% of the tube’s capacity is filled with spherical packing foam
Which of the following helped define the counterculture? Which of the following helped define the counterculture? A. Following mainstream religions B. Rejecti
The hypothalamus, which is a tiny part of the brain, is closely linked to the endocrine system a. True b. False
What is 200 millimetres equal to in centre meters?