printf make the bug

today i meet a bug , if i open the log, everything is ok, if i close the log, the bug is comming!    my god , long time ago , i met the same bug, today the same , i don't know why, but i need to remove the log, or bug always in!  

i have get it , when function define to be void, but used it as int, and you used the return to compare, the printf may make it just look like successful.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章