Javkens

Untitled

Dec 14th, 2015
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. struct stringy {
  2. char * str; //wskazuje lancuch
  3. int ct; // dlugosc lancucha
  4. };
  5.  
  6. void set(stringy &a, char *b)
  7. {
  8. delete a.str;
  9. a.ct = sizeof(b);
  10. a.str = new char[a.ct];
  11. a.str = b;
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment