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