此主題討論共計 1 篇文章。
| self | 僅瀏覽本文 | 回覆 | 回信 | 轉寄 | |
|---|---|---|---|
| struct account{ char *account; char *password; }; typedef struct account Account; typedef Account *AccountPtr; AccountPtr account[10]; account[0] = malloc(sizeof(Account)); 為何compile時它說"invalid conversion from `void*' to `Account*' "呢? 我知道用malloc會回傳void沒錯 但教科書裡這樣寫也可以過 而且這樣assign好像也是可以的? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.241.190 → james732:C語言可以過,C++必須要轉型 140.117.171.46 07/13 17:37 → james732[33m:account[0] = (AccountPtr)malloc(....); 140.117.171.46 07/13 17:38 | |||
.Net 原始碼 | ASP.NET News Reader Beta 0.2.9
2007/06/21 由於微軟新聞伺服器移除多數新聞群組 (newsgroup),目前遭移除之群組暫時改為隱藏純瀏覽,若狀況已定案時,將會將隱藏中的群組重新調整。[討論]