Advertisement
nastiia_firefly

Untitled

Dec 3rd, 2014
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. #include <string.h>
  4.  
  5. using namespace std;
  6.  
  7.  
  8. class TWord
  9. {
  10.     private:
  11.         char* str;
  12.     public:
  13.        void SetWordChar(char* ob)
  14.         {
  15.                cout<<ob;
  16.                cout<<"5\n";
  17.            for(int i=0; i<strlen(ob);i++)
  18.                 if(ob[i]==' ')
  19.                 {
  20.                     str[i]=ob[i];
  21.                     cout<<str[i];}
  22.  
  23.         }
  24.  
  25.         TWord(char* );
  26.  
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement