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];
- cin.getline (f,256);
- char temparray[256];
- char *bob[256];
- int i;
- i = 0;
- for(i; f[i] != ' '; i++)
- {
- temparray[i] = f[i];
- };
- temparray[i] = '\0';
- cout << temparray << endl;
- bob[0] = temparray;
- cout << bob[0] << endl;
- }
Add Comment
Please, Sign In to add comment