Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int brojIndexa = 170057;
- char *NoviIndexirani() {
- int vel = 9;
- char *Niz = new char[vel];
- strcpy_s(Niz, vel, "IB");
- char buffer[10];
- _itoa_s(brojIndexa, buffer, 10);
- strcat_s(Niz, vel, buffer);
- brojIndexa++;
- return Niz;
- }
- int main()
- {
- cout << NoviIndexirani() << endl;
- cout << NoviIndexirani() << endl;
- cout << NoviIndexirani() << endl;
- cout << NoviIndexirani() << endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement