Exception when comparing an (int)double and (int)int

前端 未结 3 1224
灰色年华
灰色年华 2021-01-27 10:36

Hey so i\'m using the pdCurses lib and stringStream to calculate and make a 5 character long string that represents a clock. It shows like 00:00, 0:00, 00.00, or 0.000. However

3条回答
  •  遇见更好的自我
    2021-01-27 10:55

    This is a memory system assertion, it usually is triggered by allocating memory when the heap has already been corrupted. The trigger was probably this:

    time_s.insert(0, min); 
    

    However, the problem is somewhere else--somewhere where you are overwriting memory that you shouldn't.

提交回复
热议问题