Guest User

Untitled

a guest
Nov 23rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.51 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. class str{
  5. public:
  6.     void UPPER(char p[]);
  7.     void LOWER(char p[]);
  8.     void AT(char p[], char find);
  9.     void COCATENATE(char p[], char f[]);
  10.     int COMPARE(char p[], char f[]);
  11.     void SPLIT(char p[]);
  12. };
  13. int main()
  14. {
  15.     char f[256];
  16.     cin.getline (f,256);
  17.     char temparray[256];
  18.     char *bob[256];
  19.     int i;
  20.     i = 0;
  21.     for(i; f[i] != ' '; i++)
  22.     {
  23.         temparray[i] = f[i];
  24.     };
  25.     temparray[i] = '\0';
  26.     cout << temparray << endl;
  27.     bob[0]  = temparray;
  28.     cout << bob[0] << endl;
  29. }
Add Comment
Please, Sign In to add comment