Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- class str{
- public:
- void UPPER(char p[]);
- void LOWER(char p[]);
- void AT(char p[], char find);
- void COCATENATE(char p[], char f[]);
- int COMPARE(char p[], char f[]);
- void SPLIT(char p[]);
- };
- int main()
- {
- char f[256], *bob[256];
- cin.getline (f,256);
- int i;
- i = 0;
- for(int j = 0; f[i] != '\0'; j++)
- {
- char *temp;
- temp = new char[256];
- for(i; i != '\0';i++)
- temp[i] = f[i];
- temp[i] = '\0';
- cout << temp << endl;
- bob[j] = temp;
- delete [] temp;
- cout << bob[j];
- };
- }
Add Comment
Please, Sign In to add comment