View Single Post
Old Nov 3rd, 2005, 6:05 PM   #2
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
I haven't compiled it, but the error looks like its happening with your variable k. Every time the loop iterates, k gets set back to 0. If you wanted to use k, you would have to declare it outside of the loop. Alternatively, you could say:

tab2[tallie-1-i] = contenu[i];

That should work, as well as your k method if you bring k outside the loop.
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower
Mjordan2nd is offline   Reply With Quote