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 PostPlease, just post the code inside code blocks, as in
// This is C++ code
Asking us to download data and then analyze it is inconvenient at best, and a vector for malware at worst. :-(
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.