#include <iostream>#include <string>#include <random>// 生成指定长度的随机字符串,包含随机数量的数字和字母std::string generateKey(int length){ // 构造随机数生成器