Advertisement
Sanlover

Untitled

May 21st, 2022
709
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     string tmp;
  2.     getline(cin, tmp);
  3.     cout << endl << strlen(tmp.c_str()) << endl;
  4.     unsigned char* src = new unsigned char[strlen(tmp.c_str())];
  5.     memcpy(src, tmp.c_str(), tmp.size() + 1);
Advertisement
RAW Paste Data Copied
Advertisement