m*m 发帖数: 1185 | 1 look at this global variable initialization problem:
**P
void test()
void main()
{
test()
printf(..., P[1][1]);
// Then P's value is not there, what should I do?
}
test()
{
P is defined a dynamic matrix here and also get the intial value
} | g****c 发帖数: 299 | 2 u should post your full code. what did u get if you put print inside the test?
not this pseudo code, no one can help u with this code.
【在 m*m 的大作中提到】 : look at this global variable initialization problem: : **P : void test() : void main() : { : test() : printf(..., P[1][1]); : // Then P's value is not there, what should I do? : } : test()
|
|