转义序列\r
将光标移动到行的开头。
#include <stdio.h>
int main()
{
printf(This escape sequence moves the cursor );
printf(to the beginning of this line\r);
return 0;
}
转义序列\r
将光标移动到行的开头。
#include <stdio.h>
int main()
{
printf(This escape sequence moves the cursor );
printf(to the beginning of this line\r);
return 0;
}