Update printf value on same line instead of new one

后端 未结 8 1199
刺人心
刺人心 2020-12-06 01:25

I would like to know if there is a way in C to overwrite an existing value that has already been printed instead of creating a new line every time or just movin

8条回答
  •  生来不讨喜
    2020-12-06 02:10

    You can print out as many newlines as the console screen has. This will effectively clear the screen.

    This is a great link about clearing screen in different ways.

提交回复
热议问题