看板 C_Sharp 關於我們 聯絡資訊
請問一下 在c++裡 可以這樣寫 class的指標 public class list { public char[] num=new char[10]; public box next; public box() { } } typedef class list node; typedef node *link class Program { static void Main(string[] args) { link top,walk,bottom; top=new node; typedef c#好像不能用的樣子 請問在c#中要怎麼寫 才可以讓BOX做出串連 好像要用指標的概念去做(也不是很清楚QQ) 有什麼方法嗎??? 還有, link top; top=new node 這可以宣告2次喔 看不太懂@@ 請教各位大大了 感恩 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.119.136.4
james732:C#沒有typedef這種東西 11/02 09:48
james732:建議你先打好C#的基礎... 11/02 09:49