Guest User

Untitled

a guest
Nov 23rd, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 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], *bob[256];
  16.     cin.getline (f,256);
  17.     int i;
  18.     i = 0; 
  19.     for(int j = 0; f[i] != '\0'; j++)
  20.     {
  21.         char *temp;
  22.         temp = new char[256];
  23.         for(i; i != '\0';i++)
  24.             temp[i] = f[i];
  25.         temp[i] = '\0';
  26.         cout << temp << endl;
  27.         bob[j]  = temp;
  28.         delete [] temp;
  29.         cout << bob[j];
  30.     };
  31. }
Add Comment
Please, Sign In to add comment