我警告:注:應爲 '浮動(*)[100]',但參數的類型爲 '浮置(*)[100] [100]'
note: expected ‘float (*)[100]’ but argument is of type ‘float (*)[100][100]’
我的功能看起來像:
int readfile (float macierz_A[MAXSIZE][MAXSIZE], float macierz_B[MAXSIZE][MAXSIZE])
...
float A[MAXSIZE][MAXSIZE];
float B[MAXSIZE][MAXSIZE];
int r1;// = 3;
r1 = readfile(&A, &B);
任何想法?
http://c-faq.com/aryptr/index.html,特別是第12和18部分。 –