📄 ex1.c
字号:
#include<string.h> //头文件
#include<stdio.h>
#include <reg51.h>
void main(void) //主函数
{
static char str[40]="this is line 12";
char set[]="123456";
int i;
//初始化串口
i=strcspn(str,set); //调用函数
printf("strcspn(str,set)=%d\n",i);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -