reversing words in C + +

Posted by Didi Setyapramana On 7:22 PM 0 komentar

# 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;
}

Categories:

0 Response for the "reversing words in C + +"

Post a Comment