convert serial read to int

in Serial monitor I choose newline, data can show but if I choose no line ending data wouldn't show....
any body can tell me what is differences???

Because I cant control the program if in serial monitor i must choose newline ...