作者查詢 / icetofux

總覽項目: 發文 | 留言 | 暱稱
作者 icetofux 在 PTT [ C_and_CPP ] 看板的留言(推文), 共118則
限定看板:C_and_CPP
Re: [討論] Rust與C++
[ C_and_CPP ]26 留言, 推噓總分: +14
作者: shyin7089 - 發表於 2023/06/27 09:02(10月前)
10Ficetofux: 謝謝你的說明,完整的解答了我的疑惑。06/28 08:20
[問題] 什麼樣的"錯誤"該用例外處理
[ C_and_CPP ]56 留言, 推噓總分: +8
作者: icetofux - 發表於 2021/09/27 23:20(2年前)
7Ficetofux: 使用try、catch、throw語法的例外處理09/28 07:13
[問題] 可以用參考存取陣列元素嗎
[ C_and_CPP ]8 留言, 推噓總分: +2
作者: icetofux - 發表於 2021/05/27 22:41(2年前)
2Ficetofux: 睡前想到一個idea,沒驗證一下睡不著,只好用手機搭遠端05/28 12:47
3Ficetofux: 寫個簡短的測試code,沒想到會在輸入法上失足XD05/28 12:47
[公告] 置底閒聊文(2019/5/22-)置底
[ C_and_CPP ]80 留言, 推噓總分: +38
作者: wtchen - 發表於 2019/05/22 20:19(5年前)
45Ficetofux: 請問design pattern算是本版的討論範圍嗎?雖然跟C/C++07/07 08:44
46Ficetofux: 沒有直接關係,但每種語言因為語法或特性不同實踐的方式07/07 08:44
47Ficetofux: 也不太一樣。07/07 08:44
[問題] 關於互斥的問題
[ C_and_CPP ]7 留言, 推噓總分: +3
作者: asdfg1597860 - 發表於 2020/06/11 22:05(3年前)
7Ficetofux: 用std::atomic包裝你的變數應該能解決這個問題06/13 00:42
[問題] multi-thread計時的問題
[ C_and_CPP ]19 留言, 推噓總分: 0
作者: icetofux - 發表於 2020/06/06 20:34(3年前)
6Ficetofux: 剛剛試了一下,在timestamp的存取加入了std::memory_ord06/06 21:47
7Ficetofux: er_consume跟std::memory_order_release就不再超時了。06/06 21:47
8Ficetofux: 這樣看起來好像又跟atomic有點關係@_@06/06 21:47
11Ficetofux: 只是一般X86 PC而已,不過有趣的是即便加上memory order06/06 23:58
12Ficetofux: 以後,在GDB online網站跑還是有超時現象,我的電腦上跑06/06 23:58
13Ficetofux: 卻不會。06/06 23:58
19Ficetofux: 回Lipraxde,這個方法有效,感謝!06/07 12:57
Re: [問題] 關於std::mutex的應用
[ C_and_CPP ]2 留言, 推噓總分: +1
作者: sarafciel - 發表於 2020/04/30 01:55(4年前)
1Ficetofux: 謝謝你的範例跟說明,因為我的情況屬於第二種案例,所以04/30 07:16
2Ficetofux: 我的做法確實沒考慮到第三種案例的可能會發生的缺陷。04/30 07:16
[問題] 關於std::mutex的應用
[ C_and_CPP ]30 留言, 推噓總分: +4
作者: icetofux - 發表於 2020/04/27 22:26(4年前)
4Ficetofux: 我的程式由9個thread構成,8個各自跑不同的流程,透過so04/28 07:45
5Ficetofux: cket與不同設備通訊,1個負責GUI,把8個設備的細部資料04/28 07:45
6Ficetofux: 顯示出來,每個設備約有60多種的細部資料。文中所提在th04/28 07:45
7Ficetofux: read間共用的變數就是設備傳輸至GUI的細部資料。04/28 07:45
8Ficetofux: 謝謝loveme00835,我剛剛google了active object pattern04/28 09:01
9Ficetofux: ,好像就是用來避免大量mutex的設計模式,雖然沒把握馬04/28 09:01
10Ficetofux: 上帶入應用,但是一個可以努力的方向。04/28 09:01
[問題] 運算子優先權
[ C_and_CPP ]7 留言, 推噓總分: +2
作者: x246libra - 發表於 2018/10/05 11:19(5年前)
6Ficetofux: a++:先把a的內容傳出去再++10/08 19:31
7Ficetofux: ++a:先把a的內容++再傳出去10/08 19:31
[問題] code::blocks下編譯dll遇到問題
[ C_and_CPP ]17 留言, 推噓總分: +4
作者: icetofux - 發表於 2017/04/26 20:35(7年前)
7Ficetofux: 有喔 我有確認所有檔案有加進專案了04/27 01:06
8Ficetofux: 請問從哪裡可以看出走c rule呢04/27 01:08
10Ficetofux: 喔,我知道extern "C"的用途,我以為你說的錯誤訊息04/27 09:22
11Ficetofux: 是編譯器輸出有提到。謝謝。04/27 09:23