Exception when comparing an (int)double and (int)int [closed]?

If((int)time >= 600){ time_s. Insert(4, sec); should be, if((int)time >= 600){ time_s. Insert(3, sec); // digit 3 instead of 4 From your code, I suppose the string size is 6 characters (0 to 4 and 5th character as nul).

Inserting 2 digit at 4th position and 5th position would overwrite nul. Do cross verify, as I have made a guess seeing your code.

– AndreyT May 16 at 6:01 I imagine that he means the null terminator – Chris May 16 at 6:04 But there's no null terminator in std::string. On top of that insert method does not overwrite anything.It inserts, as the name suggests. – AndreyT May 16 at 6:06 @AndreyT, Christopher is right.

I meant null terminator (which is at many conventions spelled as nul). That's simply the last 0 character. – iammilind May 16 at 6:27 @iammilind: Well, again, there's no "null terminator" in std::string.

Std::string is a string with stored length, not a null-terminated string. – AndreyT May 16 at 14:12.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions