I've been trying for hours to find out how to display an inputed word backwards but I just can't figure it out. Could someone help me please!! Thank you guys for your time.
anthony5557
0
Light Poster
Recommended Answers
Jump to Postjonsca couldnt he just do this
? yes i changed it around.We were getting there but yes, except it's
input.length()-1
for the starting index. Try not to give too much away so the OP can learn...
Jump to Postvery nice OP very nice i like your whitespace its better than some that i have seen. as for the word counting the only thing i know to do is to create a function to parse the string input and when it finds a whitespace add 1 to int x;
…
Jump to PostI'm not so sure about that... They seem to be pretty much the same to me.
I meant strings as more well behaved with cin >> but I didn't clarify that. Apologies.
Probably because in C++ char arrays are necessary at times, but strings are somewhat more standard and have …
Jump to Posthere is the final code still writting i have to write a sentence and write a phrase that will count the words, but i don't know how to do that either
Well, think about what you are trying to accomplish -- what is a word, what is a sentence, things …
Jump to PostThat was the only one that I could really understand. I am taking this class online so we really have to read the book and teach ourselves. I have been reading so of the material from programming one to catch up. Sorry it probably was kinda lame. I will get …
All 45 Replies
mrnutty
761
Senior Poster
anthony5557
0
Light Poster
jonsca
1,059
Quantitative Phrenologist
Team Colleague
Featured Poster
anthony5557
0
Light Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
anthony5557
0
Light Poster
Anarionist
1
Junior Poster in Training
Anarionist
1
Junior Poster in Training
anthony5557
0
Light Poster
hag++
24
Junior Poster
Anarionist
1
Junior Poster in Training
anthony5557
0
Light Poster
jonsca
1,059
Quantitative Phrenologist
Team Colleague
Featured Poster
hag++
24
Junior Poster
anthony5557
0
Light Poster
anthony5557
0
Light Poster
jonsca
1,059
Quantitative Phrenologist
Team Colleague
Featured Poster
jonsca
1,059
Quantitative Phrenologist
Team Colleague
Featured Poster
Anarionist
1
Junior Poster in Training
anthony5557
0
Light Poster
jonsca
1,059
Quantitative Phrenologist
Team Colleague
Featured Poster
anthony5557
0
Light Poster
Anarionist
1
Junior Poster in Training
jonsca
1,059
Quantitative Phrenologist
Team Colleague
Featured Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
anthony5557
0
Light Poster
jonsca
1,059
Quantitative Phrenologist
Team Colleague
Featured Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
hag++
24
Junior 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.