[問題] 如何儲存point
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
vc6.0
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
無
問題(Question):
想用一個陣列裡面每格都存一個指標。
預期的正確結果(Expected Output):
當我指定陣列裡的任何一格,都能依該指標找到資料。
程式碼(Code):(請善用置底文網頁, 記得排版)
char* item = "150.111.150.91";
char* buffer = new char[100];
請問如接下來要怎樣控制?例如我想要buffer[0]內存item指標,然後可以得到"150.111.15
0.91" 大致這樣。不太懂,所以描述得很差抱歉。
補充說明(Supplement):
無
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.136.150.91
→
10/26 20:52, , 1F
10/26 20:52, 1F
→
10/26 20:54, , 2F
10/26 20:54, 2F
推
10/26 22:03, , 3F
10/26 22:03, 3F
→
10/26 23:13, , 4F
10/26 23:13, 4F