摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> #define LEN sizeof(struct book) struct book{ char name[20]; int status; char author[20]; st 阅读全文
posted @ 2021-06-15 20:42 不浪费时光 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 输入字符串str、sub,查找sub在str首次出现的位置(下标)。例如str= " 123aba3abc", sub= “3ab ",sub在str中首次出现的下标为2,sub、 str长度 不超过50。 输入格式: 输入包括两行,依次是字符串str, sub. 输出格式: sub在str中首次出 阅读全文
posted @ 2021-06-15 20:39 不浪费时光 阅读(3604) 评论(0) 推荐(0) 编辑