1
我一直有這個問題幾個小時,並且已經將它指向了這個簡單的代碼位。任何人都可以給我一些見解嗎?當使用結構體和malloc時出現「錯誤:轉換爲非標量類型」
typedef struct test{
//I get an error regardless of what's in here
}TESTS;
int main(){
TESTS thing = (TESTS)malloc(sizeof(TESTS));
}
如何。我是如何在這麼簡單的事情上花費時間的,我真的已經知道了。謝謝。 – popctrl 2012-02-23 02:04:54
:)發生在我們所有人身上。很高興我能幫上忙! – tzaman 2012-02-23 02:07:07
完全刪除演員會更好。 – 2012-02-23 02:21:53