Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct stringy {
- char * str; //wskazuje lancuch
- int ct; // dlugosc lancucha
- };
- void set(stringy &a, char *b)
- {
- delete a.str;
- a.ct = sizeof(b);
- a.str = new char[a.ct];
- a.str = b;
- }
Advertisement
Add Comment
Please, Sign In to add comment