Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- //////////////////////////////////////////////
- class _String
- {
- int nLen;
- int i;
- public:
- char sz[1000];
- ///////////////////////
- _String()
- {
- nLen = 0;
- sz[0] = 0;
- }
- ///////////////////////
- void get(const char* a)
- {
- nLen = strlen(a);
- strcpy(sz, a);
- }
- };
- ////////////////////////////////////////////////////
- int main() //
- {
- _String s1;
- s1.get("World");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement