我想用雙指針結構。構建成功,但在運行時,它提供了以下錯誤:雙指針結構
Run-Time Check Failure #3 - The variable 'test2' is being used without being initialized.
的代碼是:
testStructure* test1 = (testStructure*)malloc(sizeof(testStructure));
testStructure** test2 ;
test1->Integer = 1;
test1->Double = 4.566;
*test2 = test1;
和結構是:
typedef struct{
int Integer;
double Double;
} testStructure;
我要去哪裏錯了?