I basically want the second array to be added to the first, so there are more options. I'm going to continue to do this too.
Will a simple strcat(thingy1, thingy2) do?
Ok. What I'm basically doing is a adding more to the array if certain conditions are passed.
For example, if strength = 6, then I would add the appropriate array.
I will be doing this repeatedly for each attribute, so the original array will increase in size for each passed check.
I know, but for the project I'm actually not allowed to use strings for what I am doing, it has to be arrays.
EDIT:
Done some more research on strcpy and I found out how I can do this.
I can strcpy individual parts of the array.
The basic idea is:
strcp(thingy1[2],thingy2[0])
strcp(thingy1[3],thingy2[1])
I haven't been able to try it yet, but I believe that this is basically what is possible. However, I would have to be able to retrieve what the total number of an array is each time before I use that number to find the first empty location before I add to the original array. Is this possible with a for loop?
E.G
int total = 0;
for(int i=0; i<10;i++)
{
if thingy[i] = "/0"
total = i
}
strcp(thingy1[total],thingy2[0])
strcp(thingy1[total+1],thingy2[1])
and so on?