[問題] 結構指標 link
請問一下
在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
→
11/02 09:48, , 1F
11/02 09:48, 1F
→
11/02 09:49, , 2F
11/02 09:49, 2F