Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Im just getting started with C++ and was stuck on this question, any help would be very appreciated Write a program that reads a string

Im just getting started with C++ and was stuck on this question, any help would be very appreciated

Write a program that reads a string comprised of a number of words and (1) prints the string in reverse order, (2) prints the words in reverse order. eg:

Enter words: This C++ stuff is cool

looc si ffuts ++C sihT

sihT ++C ffuts si looc

Your program must be comprised of a main(), a function called PrintReverseString() and PrintReverseWords() and must use a char array (c-string) for storing the words. Both functions are passed the string in a char array and should print the string or words in reverse order respectively

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

define the term outplacement

Answered: 1 week ago

Question

describe the services that an outplacement consultancy may provide.

Answered: 1 week ago