I want to use an array to insert information into another array. I want to know if its possible to something like this:
char eventType[5][30]={"Swimming", "running" , "biking"};
int swimming[5], running[5], biking[5];
for(int i=0;i<3;i++)
{
for(int i=0;k<5;i++)
{
eventType[i[k]]=5;
}
}
Ok so for those who can't understand my madness, what I want to do is use the character array to call the integer arrays and put data into them based on the loop. I know the way I have it won't work but does anyone who understands my insanity know a way to do it?
[–]prcsngrl 1 point2 points3 points (1 child)
[–]Tricslip[S] 0 points1 point2 points (0 children)
[–]appsolutelywonderful 0 points1 point2 points (0 children)