作者查詢 / WJAider
作者 WJAider 在 PTT [ C_and_CPP ] 看板的留言(推文), 共158則
限定看板:C_and_CPP
看板排序:
全部Boy-Girl3453ToS2068Gossiping1820NSwitch887OverWatch694C_Chat516ClashRoyale412PokeMon356Hip-Hop217PC_Shopping174C_and_CPP158Soft_Job157Aquarium142Android134joke123GameDesign97StrikeShoot91Steam72PokemonGO66ToS_Match60Unlight57toberich51Web_Design34MobileComm32WindowsPhone31WomenTalk20FuMouDiscuss18Dota_Legend17Sub_RolePlay17Tech_Job17marriage13AnimalForest12BlizzHeroes12CCRomance12PHP12Grad-ProbAsk11Minecraft11Programming10soho10Math8Flash7PublicIssue7StupidClown7mobile-game6CareerPlan5CATCH5give5Stock5ComGame-Plan4Headphone4CodeJob3iOS3specialman3Aviation2BattleRoyale2BigSanchung2LAW2Little-Games2MenTalk2NTUBST1012PUBG2Salary2Taoyuan2Violation2Vtuber2AfterPhD1C_Sharp1cat1CFantasy1Create1Daan1Depstore1DIABLO1Digital_Art1DSLR1Gamesale1gift1HWSH1Instant_Mess1Isayama1KS98-3021L_TalkandCha1marvel1movie1NCUE1NTUBST1001PttHistory1Ruby1sex1Sub_GMobile1talk1TWvoice1You_out1<< 收起看板(93)
3F→:未知,行數與每行長度皆不固定01/08 18:08
9F→:所以是指就讓他建構解構 n 次 istringstream 沒關係這樣?01/09 00:34
13F→:嗯好~不過習慣有點難改就是了,多謝指教01/09 18:26
9F→:指標是惡魔,看不到惡魔就算是好事吧XD01/07 16:19
12F→:因為 string 也是一個容器01/03 21:33
4F→:B 檔案也是個程式?01/01 18:15
9F→:可以用 c++ 嗎??01/01 21:03
2F→:要初始化要再初值設定列,不可以在那裡12/28 22:57
3F→:直接叫 constructor12/28 22:58
7F→:為啥 vector<T> 裡面可以不用傳樣版參數 T ??12/28 19:52
8F→:'__gnu_debug_def::vector' without an argument list12/28 19:53
9F→:妳的 vector<T> 要告訴它到底是哪個型別的 vector12/28 19:54
10F→:vector<int> 才是一個 int 的 vector12/28 19:54
11F→:並沒有 vector 這個型別,請為它加入樣版參數,感恩12/28 19:55
1F→:做法有很多,可以 overload static_cast<int>12/25 23:03
2F→:也可以寫個成員函數 int to_int() const ;12/25 23:03
3F→:然後該行這樣呼叫就好了: add( to_int() );12/25 23:04
4F→:add() 跟 to_int() 都不需要 this pointer12/25 23:05
5F→:不過這樣數字是以指數成長XD 應該不是你要的12/25 23:06
6F→:int begin = to_int; for(...){ add( begin ) }12/25 23:06
7F→:另外存起來就好了吧,以上12/25 23:07
14F→:對耶,我沒注意忘記 add 是傳 HugeInt 了,sor12/26 18:44
3F→:ASCII table 已經進化到我看不懂的境界了...12/25 21:39
11F→:ascii 只有 0 ~ 127 吧???12/26 18:45
7F→:*(iter+1) 有錯看起來實在是很像指到 vec.end()12/25 21:43
8F→:find 完有確認 iter == vec.end() 這件事嗎?12/25 21:45
8F→:簡而言之,記住 class 中使用 new 做動態記憶體配置的話12/25 15:12
9F→:最好把 constructer, copy constructer,12/25 15:13
10F→:assignment operator(operator=), destructor 都自己寫12/25 15:14
11F→:不要用預設的,以免發生沒考慮到的狀況12/25 15:14