printf("Error %d
", 1);
printf("
Status: %d%%", 50);
prints
Error 1
Status: 50%
In this set up, is there any chance to insert Error 2
between Error 1
and
Status: 50%
. I understand that
and
can be used to change printed text in the same line (e.g., if there is a single
between Error 1
and Status: 50%
), but can I change text in a previous line?
Thanks!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…