谁能给我一个C语言里面 实现C#中foreach功能的函数?

[复制链接]
查看11 | 回复3 | 2009-6-12 00:59:05 | 显示全部楼层 |阅读模式
int[] nArray = new int[100]; // Use "foreach" to loop arrayforeach( int i in nArray ) C:int nArray = new int[100];for(i = 0; i < 100; i++)......
回复

使用道具 举报

千问 | 2009-6-12 00:59:05 | 显示全部楼层
sting[] arrstr={"a","b","c"}stringstrName="";foreach(string str in arrstr){
strName+=str;}...
回复

使用道具 举报

千问 | 2009-6-12 00:59:05 | 显示全部楼层
楼上的已经很清楚了,我在这没什么可不充的了,来看看!...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行