转义序列\\r将光标移动到行的开头。#include stdio.hint main(){printf(This escape sequence moves the cursor );
编程学习网为您整理以下代码实例,主要实现:转义序列\r\n将光标移动到行的开头,希望可以帮到各位朋友。
转义序列\r
将光标移动到行的开头。
#include <stdio.h>
int main()
{
printf("This escape sequence moves the cursor ");
printf("to the beginning of this line\r");
return 0;
}