for( k = 0; k < CycleCount;k++)
{
//make Org data
int* Data = MakeData(DataCount[i]);
......
the function look like this one. i think this is right. so ...
int* MakeData(int DataCount)
{
//
int* Data=(int*)malloc(DataCount*sizeof(int));
int i;
for( i=0; i<DataCount; i++)
{
//
Data[i] = rand()%DataCount +1;
}
return Data;
}
i dont know why this didn't work.
what shoud i have to do???
DataCount?MakeDatait's an integer parameter, 2. Somewhere else whereMakeDatais called it's something else.int* Data = MakeData(DataCount[i]), the other one being defined as a parameter inMakeData. I should have been more explicit.