⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex1.c

📁 零基础单片机C语言设计全套教程
💻 C
字号:
#include<string.h> 							//头文件
#include<stdio.h>
#include <reg51.h>

void	main(void)			  				//主函数
{
static char str[]="this is line 1 "					//初始化字符串
"this is line2 "
"this is line 3 ";

//初始化串口

printf("str before=%s\n",str);					//输出移动前的字符串
memmove(&str[0],&str[15],32);					//调用函数
printf("str after=%s\n",str);						//输出移动后的字符串
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -