+ 1

Code Coach : Extra Terrestrial

My Code showing the exact output that expected ... But it still showing error ... What's wrong in this code? what should I do to solve this? #include <iostream> using namespace std; int main() { string s; getline ( cin, s); for(int i = s.length() ; i>= 0 ; i--) cout<<s[i]; return 0; }

18th Sep 2020, 5:14 AM
Suraj
Suraj - avatar
2 Antworten
+ 2
Thanks It worked Now... Just a "-1" mistake ... Thanks Again 😊
18th Sep 2020, 5:58 AM
Suraj
Suraj - avatar
+ 1
Not working, it's showing that "No such member declared ... Did you mean length"
18th Sep 2020, 5:54 AM
Suraj
Suraj - avatar