作者查詢 / pinefruit

總覽項目: 發文 | 留言 | 暱稱
作者 pinefruit 在 PTT 全部看板的留言(推文), 共206則
限定看板:全部
[問題] heap use after free 問題
[ C_and_CPP ]3 留言, 推噓總分: +1
作者: lemonsheep - 發表於 2021/03/20 16:39(3年前)
1Fpinefruit: 第九行是不需要的,主要問題在於...03/20 19:04
2Fpinefruit: 當 cur 插到前面去時,原本 cur 所在位置的前後關係03/20 19:05
3Fpinefruit: 也需要處理。03/20 19:06
[問題] 指標問題
[ C_and_CPP ]11 留言, 推噓總分: +5
作者: Arim - 發表於 2021/03/15 20:41(3年前)
4Fpinefruit: 其實這邊不管有沒有括號,p++ 都會先算。03/15 22:29
5Fpinefruit: 但 p++ 的運算流程是: 1. 建立一份 p 的副本03/15 22:29
6Fpinefruit: 2. 遞增 p 的值 3. 回傳步驟 1 的副本03/15 22:30
7Fpinefruit: 所以 *(p++) 反參考到的其實是 p 在遞增前的副本。03/15 22:30
[測試] test已刪文
[ Test ]3 留言, 推噓總分: 0
作者: pinefruit - 發表於 2021/03/04 19:32(3年前)
1Fpinefruit: 君不見,黃河之水天上來,奔流到海不復回。君不見,高03/04 19:33
2Fpinefruit: 君不見,黃河之水天上來,奔流到03/04 19:34
3Fpinefruit: 海不復回。君不見,高03/04 19:34
[測試] test已刪文
[ Test ]1 留言, 推噓總分: 0
作者: pinefruit - 發表於 2021/03/01 18:33(3年前)
1Fpinefruit: https://i.imgur.com/b0YC58f.gif03/01 18:35
[問題] QMovie 不吃 QZipReader 的fileData
[ C_and_CPP ]9 留言, 推噓總分: +2
作者: liu2007 - 發表於 2021/02/25 01:43(3年前)
6Fpinefruit: 看了你的程式碼,問題出在 QByteArray 和 QBuffer 物件02/25 16:24
7Fpinefruit: 都是區域變數,當建構式一結束這兩個物件就銷毀了。02/25 16:24
8Fpinefruit: 所以 movie->start() 才會 crash。02/25 16:25
9Fpinefruit: 在 movie 播放 GIF 期間,這兩個物件都必須活著才行。02/25 16:25
[問題] 新手問題 (500P)
[ java ]14 留言, 推噓總分: +3
作者: ooww - 發表於 2021/02/24 14:06(3年前)
10Fpinefruit: 如樓上所說,把這個: System.console().readLine();02/24 16:52
11Fpinefruit: 換成這個試試: (new Scanner(System.in)).nextLine();02/24 16:52
[問題] 利用pointer取substring
[ C_and_CPP ]14 留言, 推噓總分: +7
作者: ericerix - 發表於 2021/02/23 12:17(3年前)
6Fpinefruit: 用你試出的方法 a = &b[3],或是 a = b + 3 都可以。02/23 16:02
7Fpinefruit: 另外,b 要宣告成陣列或指標對這問題並沒有影響。02/23 16:03
[請益] 有中文自學程式的資源嗎QQ
[ Soft_Job ]126 留言, 推噓總分: +47
作者: foam0406 - 發表於 2021/02/21 15:17(3年前)
18Fpinefruit: 良葛格學習筆記惠我良多,搜尋"良葛格"就找得到了02/21 16:47
[問題] 如何製作類似PTT發文介面
[ AndroidDev ]33 留言, 推噓總分: +8
作者: Kanamehomura - 發表於 2021/02/17 00:11(3年前)
13Fpinefruit: 若 Activity 和 Fragment 不知道要選哪個,02/19 16:55
14Fpinefruit: 建議就選 Fragment 吧!畢竟它更輕量化且更靈活,02/19 16:55
15Fpinefruit: 我記得也是官方在後期比較推薦的作法。02/19 16:55
16Fpinefruit: 不過如果想更快完成作品,用 Activity 也是可以的。02/19 17:32
[測試] test2已刪文
[ Test ]23 留言, 推噓總分: 0
作者: pinefruit - 發表於 2021/01/28 22:36(3年前)
1Fpinefruit: test01/28 22:37
2Fpinefruit: test01/28 22:39
3Fpinefruit: test01/28 22:40
4Fpinefruit: test01/28 22:49
5Fpinefruit: test01/28 23:05
6Fpinefruit: test01/28 23:07
7Fpinefruit: test01/28 23:08
8Fpinefruit: test01/28 23:09
9Fpinefruit: test01/28 23:10
10Fpinefruit: test01/29 00:15
11Fpinefruit: test01/29 00:16
12Fpinefruit: test01/29 00:19
13Fpinefruit: test01/29 00:22
14Fpinefruit: test01/29 00:22
15Fpinefruit: test01/29 00:23
16Fpinefruit: test01/29 00:38
17Fpinefruit: test01/29 00:39
18Fpinefruit: test01/29 00:41
19Fpinefruit: test01/29 00:44
20Fpinefruit: test01/29 00:45
21Fpinefruit: test01/29 00:46
22Fpinefruit: test01/29 00:59
23Fpinefruit: test01/29 01:00