#include <iostream>
#include <cstdio>
#include <string>
int main()
{
int pos;
std::string fileName;
std::string final;
for(int i = 0; i < 10; i++)
{
std::string name = std::tmpnam(nullptr);
pos = name.find_last_of('/');
fileName = name.substr(pos + 1);
final = fileName + ".jpg";
std::cout << final << std::endl;
}
}
03-21
198
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-28
01-11
08-09
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交