64,639
社区成员
发帖
与我相关
我的任务
分享
void GenerateDigital(const unsigned int len){
char *temp = new char[len];
char **p_temp = &temp;
for (int i = NULL; i < pow(10,len); i++){
sprintf_s(temp,strlen(temp), "%d", i);
cout << *p_temp << endl;
}
}
#pragma warning(disable:4996)
sprintf_s(temp,len+1, "%d", i);