Simple/difficult things for beginner. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Simple/difficult things for beginner.

Will somebady explaim me how in my code I can add cout to print the entered word not only reverse? I do not have any problem in my CodeBlock but in sololearn application code behaves differently. https://code.sololearn.com/cn9R6IhIwtu7/?ref=app

3rd Jul 2017, 2:20 PM
Rafał Witek
Rafał Witek - avatar
10 Answers
+ 7
@Rafal: Thats ok, Jojo made it clear for me. See the Jojos answer or the code I posted (which is your code with the changes you want in it)
3rd Jul 2017, 2:43 PM
jay
jay - avatar
+ 6
ha thanks, its more for me so I remember to remove it later on, cause yeah it is Rafals code not mine
3rd Jul 2017, 2:41 PM
jay
jay - avatar
+ 4
not sure I understand. the code works as I expect it to here. I entered the word boo. The program outputs oob
3rd Jul 2017, 2:30 PM
jay
jay - avatar
3rd Jul 2017, 2:37 PM
jay
jay - avatar
+ 3
@Rafat Do want to trade up to Visual Studio? Here is a thread of links if you want to try it. https://www.sololearn.com/discuss/410578/?ref=app
3rd Jul 2017, 4:07 PM
Manual
Manual - avatar
+ 2
You can add : cout << word << endl; in line 16
3rd Jul 2017, 2:35 PM
Jojo
+ 2
I like the name of the code X)
3rd Jul 2017, 2:40 PM
Jojo
+ 2
Hey Jay, my language is not realy good. Maybe I mispriced the question. The program works good but I want to write in console originally entered word nad after that the reverse of that word.
3rd Jul 2017, 2:40 PM
Rafał Witek
Rafał Witek - avatar
+ 2
Yeah that's what I understood look at Jay's code
3rd Jul 2017, 2:42 PM
Jojo
+ 2
@Jojo @jay Thank you guys, I've corrected the code. Sometimes simple things make the most problems. @Manual Ofcourse I will look at it.
3rd Jul 2017, 4:49 PM
Rafał Witek
Rafał Witek - avatar