印刷组合 [英] Printing combinations

查看:82
本文介绍了印刷组合的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好:C Sharp,C ++

我的问题是:

是否可以在()循环内打印两个不同长度的字符串数组,i试图做,但到目前为止没有任何积极的结果。谢谢

Hello: C Sharp, C++
My question is:
Is it possible to print two string arrays with different lengths inside of the same for()loops, i tried to do, but so far without any positive result. Thanks

推荐答案

到目前为止你尝试了什么?
What have you tried so far?


感谢Rabbit有兴趣帮助我,以及我发布的问题是因为我创建了一个执行以下操作的程序:


1)使用5 for()循环打印第一个字符串数组

2)打印第二个字符串使用5 for()循环的数组

3)打印两个数组之间的等于行


程序运行正常,但其运行时间约为8分钟,正因为这个原因,我发布了我的问题,以便找到一种方法来节省运行时间并获得更好的性能。到目前为止,我尝试了一些想法但没有积极的结果。

如果你能帮助我,我真的很感激,谢谢。
Thanks Rabbit for being interested in helping me, well the question i posted is because i created a program that does the following:

1) Print a first string array using 5 for() loops
2) Print a second string array using 5 for() loops
3) Print the equals rows between both arrays

The program runs fine, but its running time is about 8 minutes, is for this reason i posted my question to get a way to save running time and gain a better performance. So far i tried some ideas but without a positive result.
If you can help me i really appreciate it, thanks.


请展示你的作品。 />
选择格式然后使用 [CODE /] 格式按钮格式化代码。
Please show your work.
Format your code by selecting it and then using the [CODE/] format button.


这篇关于印刷组合的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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