作者light0617 (遗忘的~光)
看板C_Sharp
标题[问题] 结构指标 link
时间Mon Nov 2 09:21:53 2009
请问一下
在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
1F:→ james732:C#没有typedef这种东西 11/02 09:48
2F:→ james732:建议你先打好C#的基础... 11/02 09:49