Advertisement
Guest User

Untitled

a guest
May 20th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int brojIndexa = 170057;
  6.  
  7. char *NoviIndexirani() {
  8. int vel = 9;
  9. char *Niz = new char[vel];
  10. strcpy_s(Niz, vel, "IB");
  11. char buffer[10];
  12. _itoa_s(brojIndexa, buffer, 10);
  13. strcat_s(Niz, vel, buffer);
  14. brojIndexa++;
  15.  
  16. return Niz;
  17. }
  18.  
  19.  
  20. int main()
  21. {
  22.  
  23. cout << NoviIndexirani() << endl;
  24. cout << NoviIndexirani() << endl;
  25. cout << NoviIndexirani() << endl;
  26. cout << NoviIndexirani() << endl;
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34. system("pause");
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement