Try std::tempnamthe header cstdio.;)
The standard C library is still available in C ++ code. For convenience, they provide C ++ wrappers (in headers prefixed with "c" and without extension) and are available in the std namespace.
C (stdio.h tempnam , ++;))
++ , . , char , C . , , , .
- tempnam, ++ , C? , .