Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. char *calcSerial(char *name);
  2.  
  3.  
  4. int _tmain(int argc, _TCHAR* argv[])
  5. {
  6.     char name[100];
  7.  
  8.     cout << "Name: " << endl;
  9.     cin.getline(name, 100);
  10.     cout << "Serial: " << endl;
  11.     cout << calcSerial(name);
  12.     while(true);
  13.  
  14.     return 0;
  15. }
  16.  
  17. char *calcSerial(char *name)
  18. {
  19.     char lulz [] = "abcde";
  20.  
  21.     return (char*)&lulz;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement