- C言語なら俺に聞け(入門編)Part 127 [転載禁止]©2ch.net
286 :デフォルトの名無しさん[sage]:2014/12/10(水) 02:32:07.90 ID:hVfFOG57 - >>282,283
そのコードだと、文字列(char ptr[])が"ABC"なら4が返るんじゃない? 条件式じゃなくてループ内でインクリメントしないと count=0; while(ptr[count]) count++;
|
- C言語なら俺に聞け(入門編)Part 127 [転載禁止]©2ch.net
301 :デフォルトの名無しさん[sage]:2014/12/10(水) 21:54:33.89 ID:hVfFOG57 - binary digit では表現できない decimal floating point number があるのサ…
悲しくはないけれどこれ、現実なのよね…
|
- Go language part 1
405 :デフォルトの名無しさん[sage]:2014/12/10(水) 22:38:54.56 ID:hVfFOG57 - 面倒くさいけど、こんな風にするみたい
ptr := m["Bell Labs"] ptr.Lat = float64(1) m["Bell Labs"] = ptr Issue 3117: cannot assign to a field of a map element directly: m["foo"].f = x https://code.google.com/p/go/issues/detail?id=3117
|