Hi i am trying to write a program where the user inputs a list of space separated words (more than ten are required); the program then reverses and prints the order of the words.
Example: input:“Extra Credit Programs”; output: “Programs Credit Extra”
but my program s far is not behaving correctly. can anyone help me please.
hawita -3 Light Poster
Recommended Answers
Jump to PostYou posted Code that makes no sense at all.
1) Output a message 2) define a string variable 3) Sort nothing since all you did was declare a variable 4) declare a prototype for a non-existant function 5) start a loop the a) inputs a string b) …
Jump to PostA stack is a virtual container that behaves something like an array but has restricted, instead of random access, to whats inside.
The first thing you need to be able to do is be able to identify separate words (also known as tokens or substrings or whatever). Using the …
All 8 Replies
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
hawita -3 Light Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
vijayan121 1,152 Posting Virtuoso
mrnutty 761 Senior Poster
hawita -3 Light Poster
Lerner 582 Nearly a Posting Maven
mrnutty commented: like +7
hawita -3 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.