摘要: 示例中,压栈push语句是 space[--top] = element; 而出栈pop语句是 space[top++]; 这个逻辑和数据结构中的算法恰好相反; 阅读全文
posted @ 2021-08-08 12:02 FanSpace 阅读(70) 评论(0) 推荐(0)
摘要: 题目:输入一个字符串和一个字符,在字符串 s 中查找字符 ch,如果找到返回第一次找到的该字符的字符串中的位置(地址); 示例1: int main(void) { char ch, str[80]; printf("Input the string:\n"); scanf("%s", str); 阅读全文
posted @ 2021-08-06 23:34 FanSpace 阅读(926) 评论(0) 推荐(0)