# include <iostream> # include <conio.h> return class { public: void reversed(); private: char word [50]; }; void return:: reversed () { cout <<"enter the word that will be reversed"; cin>> word; cout <<"\ n \ n"; strrev (word); cout <<"Word After reversed:" <<word; } int main () { return X; X.reversed (); getch (); return 0; }
0 Response for the "reversing words in C + +"
Post a Comment