IT討論區(160) 1337Coder

1001 回覆
6 Like 2 Dislike
2022-06-01 11:17:29
Nope
He means, say C derives from A and B and has virtual method
You may find &c ≠ (A*)&c ≠ (B*)&c
2022-06-01 11:26:48
Have you tried adding a virtual destructor for Node?

class Node {
  public:
    // This needs to be virtual so that we call the correct destructor
    // when freeing a child class object.
    virtual ~Node() = default;
2022-06-01 11:28:54
Provide a definition to your pure virtual destructor.
Seems nothing done with smart pointer/vector.
2022-06-01 11:33:48
有冇可能將你D code抆走哂佢,淨係call佢API確保一定唔會踩到time limit,試下仲有冇呢個問題?
如果真係vendor有問題就一定係射返比vendor。
2022-06-01 11:34:37
Yes, you need to defined the destructor.
2022-06-01 11:52:56
The point is to provide a definition for the virtual destructor, doesn’t matter if you use smart pointer or not.

And container to base class just does not work as your specific intention here.
2022-06-01 11:57:17
2022-06-01 12:04:17
2022-06-01 12:18:09
唔可以queue
佢一過要即刻處理
2022-06-01 12:21:38

做正苦project不如直接cap啦,43k up,做細vendor其實冇乜意思,仲要平手
好多公司請人係睇programming經驗,c++同java係類似lang都好,同另一個full java經驗candidate比,你點都會輸,你而家呢個offer好明顯係睇到你冇java工作經驗先壓你價
如果你對c++冇特別抗拒既話,我建議都係做返c++,4年c++經驗好值錢,其實都係睇你點包裝點present,冇話冷唔冷門,大把公司用c++
aim中型港資fintech做一兩年洗個底,之後50k冇難度
2022-06-01 12:23:00
其實你意思係
全部文件你都做相似嘅嘢
啲簡單文件,佢可以喺timeout 之前做完
有啲複雜嘅文件,就timeout 都未做完

定唔同文件有唔同requirement
有啲requirement做唔到
2022-06-01 12:23:47
抆哂係真係冇問題
但個啲business logic唔可以唔做
最好笑係個客話佢地遇到問題多
但我地試係少出個問題
試緊射波俾vendor問究竟仲有咩因素影響
2022-06-01 12:26:35
手巴而家係1-2HBU base
C++真係可以好好搵
2022-06-01 12:27:55
全部文件都一樣size detail唔會相差遠
都係行同一樣嘅process
但timeout發生係係隨機
2022-06-01 12:30:05
你有冇得寫code reset部機
2022-06-01 12:34:22
2022-06-01 12:36:27
Reset 姐係點
2022-06-01 12:37:01
memory leak
2022-06-01 12:41:57
因為
1. 手巴唔中意rust
1a. 官網配色差勁
1b. fn你老母 pub你老母 !你老母 if又無括號 可讀性差勁
1c. cargo sucks
2. crypto currency sucks at the moment
3. 手巴bonus還可以
2022-06-01 12:43:46
部機有事咪reset部機先 是常識吧
吹水台自選台熱 門最 新手機台時事台政事台World體育台娛樂台動漫台Apps台遊戲台影視台講故台健康台感情台家庭台潮流台美容台上班台財經台房屋台飲食台旅遊台學術台校園台汽車台音樂台創意台硬件台電器台攝影台玩具台寵物台軟件台活動台電訊台直播台站務台黑 洞