看板
[ C_Sharp ]
討論串[問題] 紀錄struct內的資料
共 5 篇文章
內容預覽:
// 前文恕刪. // 雖不是很懂原Po的需求, 不過還是隔空抓藥寫個雛形給原Po. public struct Point. {. public int X { get; set; }. public int Y { get; set; }. }. public class PropertyPoi
(還有1061個字)
內容預覽:
^^^^^^^^^^^^^^^^^^^^^^. 參數請用逗號","分隔. 你可以在這邊一起將c設定好,例如:. totledata.c = "(" + totledata.a + ", " + totledata.b + ")";. 你也可以不設定c,直接以AB[index]方式取a、b值,. 例如
(還有44個字)
內容預覽:
private void button1_Click(object sender ,EventArgs e). {. totledata.a=Convert.ToInt32(textBox1.text);. totledata.b=Convert.ToInt32(textBox2.text);. A
(還有22個字)
內容預覽:
大大們好. 我想請問一下 如果說我已經有一堆資料了. 比如說. public struct Data. {. public int a;. public int b;. public String c;. public Data(int a; int b ;String c). {. this.a=
(還有63個字)