ベスパリブ

プログラミングを主とした日記・備忘録です。ベスパ持ってないです。

2016-05-01から1ヶ月間の記事一覧

間接演算子のインクリメント

以下の様な処理で、予期しない動作をしてかなり悩んだ func(char* hoge){ *hoge ++; } 実際にはもっと処理は長いのだが、どこが原因かを突き止めること自体に悩んだ。上記の意図としては、hogeのアドレスが指し示す値をインクリメントして欲しくて記述したも…

after resolving the conflicts, mark the corrected paths with 'git add <paths>' or 'git rm <paths>' and commit the result with 'git commit'

git

(他ブランチの)特定コミットをmasterブランチにコミットする。 git checkout master git cherry-pick [コミットID] 当たり前のようにエラーが出る。 hint: after resolving the conflicts, mark the corrected paths hint: with 'git add <paths>' or 'git rm <paths>' h</paths></paths>…