看板 C_Sharp 關於我們 聯絡資訊
請問我有以下c的結構 可是要改成c#的 struct { char name[30]; int a,b; float c,d; } node[7000]; 我改成一下這樣 用在visual studio 2005 c# namespace WindowsApplication4 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void run_Click(object sender, EventArgs e) { int i = 0, f; int flag; struct kkk{ //放這邊可以嗎? char name=new char[30]; int a,b; float c,d; }; struct node=new kkk[7000]; ..... ..... 這樣還是不行用 請問我錯在哪 感恩 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.69.149.252
KENyroj:結構只能放在 method 及 class 外吧, 地位等同 class ? 08/22 16:33