c中的随机字符串 [英] random string in c

查看:78
本文介绍了c中的随机字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

while(i<k+1)
{
    generate_random_string(str,rand()%n);
    for(j=0;j<n;j++)
    {
        printf("%c",str[j]);
    }
    printf("\n");
    i++;
}



这段代码会产生相同字符串的子字符串,您对此有何看法?



This code produces the substring of the same string what do you think about that?

推荐答案

您对此有何看法?"

我认为在收到回复后删除您的问题是不礼貌的.
请不要再这样做:问题和答案可能会帮助处于相同情况的其他人.
"what do you think about that?"

I think it is damn rude to delete your question when you get a reply to it.
Please do not do it again: the question and reply may help others in the same situation.


这篇关于c中的随机字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆