摘要:
#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 阅读全文
摘要:
输入字符串str、sub,查找sub在str首次出现的位置(下标)。例如str= " 123aba3abc", sub= “3ab ",sub在str中首次出现的下标为2,sub、 str长度 不超过50。 输入格式: 输入包括两行,依次是字符串str, sub. 输出格式: sub在str中首次出 阅读全文