我们如何在c语言中使用foreach [英] how can we use foreach in c language
本文介绍了我们如何在c语言中使用foreach的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果c不支持foreach那么我们可以在那个地方
if c does not support foreach then what can we at that place
推荐答案
引用:
如果c不支持
C
中没有 foreach
。
There is NO foreach
in C
.
引用:
母鸡我们在那个地方可以做什么
hen what can we at that place
使用标准 for
statement。
Use the standard for
statement.
C中没有foreach
或任何接近的。您需要重新考虑问题并使用标准循环处理它:for
,do
,等。请参阅 https://msdn.microsoft.com/en-us /library/015az3wz.aspx [ ^ ]。
There is noforeach
in C, or anything close. You need to rethink the issue and handle it with a standard loop:for
,do
,while
etc. See https://msdn.microsoft.com/en-us/library/015az3wz.aspx[^].
宏[ ^ ]
-KR
Macros[^]
-KR
这篇关于我们如何在c语言中使用foreach的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文