📄 ex1.c
字号:
#include<string.h> //头文件
#include<stdio.h>
#include <reg51.h>
void main(void) //主函数
{
static char str[]="this is line 1 ";
//初始化串口
printf("str before=%s\n",str);
memset(str,'a',sizeof(str)); //调用函数
printf("str after=%s\n",str); //输出填充后的结果
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -