1、
2、
3、
4、
5、
6、
#include<stdio.h>
int main(){
printf("hello world");
printf("\n\a");//换行\n \a发生
printf("Hello World");
printf("\b");//光标退格,但不是删除
getchar();
}
2、
#include<stdio.h>
int main(){
printf("hello world");
printf("\n\a");//换行\n \a发生
printf("Hello World");
printf("\r");//移动到本行开头
getchar();
}
3、
#include<stdio.h>
int main(){
printf("hello world");
printf("\n\a");//换行\n \a发生
printf("Hello World");
printf("\r");//移动到本行开头
printf("xx");//移动到本行开头
getchar();
}
4、
#include<stdio.h>
int main(){
//system("D:\\qq\\Bin\\QQ.exe");// \\代表\
system("\"D:\\qq\\Bin\\QQ.exe\"");// \""代表字符串里面的""
system("pause");
}
5、
#include<stdio.h>
void main(){
putchar('h');
putchar('h');
putchar('h');
putchar('\n');//换行
printf("\n");
putchar('h');
putchar('h');
putchar('h');
getchar();
}
6、
#include<stdio.h>
void main(){
putchar('s');//字符
putchar('\r');//回车--位于开头处
putchar('\n');//换行
putchar('s');
putchar('s');
putchar('\b');//退格
getchar();
}