المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : newbe question about arrays



C++ Programming
04-02-2009, 02:22 PM
I'm trying to incurment my array of inputs while the loop goes around

example


int num=2;
int array[1,2,3,4,etc];

for(int l=0;l
do this etc}


how do i incurment the array as the number changes??

hope i've made my question clear http://www.barakasoft.com/script/Forums/Images/smiley_sniff.gif

i.e. the num determines how many of the array values to take in

Any help would be much appreciated thanks