Talk:Loop over multiple arrays simultaneously: Difference between revisions
Content added Content deleted
(→?: new section) |
(→?) |
||
Line 15: | Line 15: | ||
:THIS CANNOT BE RIGHT. PLEASE FIX. |
:THIS CANNOT BE RIGHT. PLEASE FIX. |
||
The code compiles and runs, and loops over multiple arrays simultaneously, so in that sense, it is right. If anything, it's probably doing too much (there's about 5 times the amount of code this task should need). But I think that that kind of code critique belongs here on the talk page. Alternate versions could go on the main page, if anyone wants to write them. --18:31, 22 July 2011 (UTC) |
The code compiles and runs, and loops over multiple arrays simultaneously, so in that sense, it is right. If anything, it's probably doing too much (there's about 5 times the amount of code this task should need). But I think that that kind of code critique belongs here on the talk page. Alternate versions could go on the main page, if anyone wants to write them. --[[User:Rdm]] 18:31, 22 July 2011 (UTC) |
||
I've added an “ordinary” C example and some explanation of what the fancy one is doing. —[[User:Kevin Reid|Kevin Reid]] 21:56, 22 July 2011 (UTC) |