摘要: # Learn Markdown ## second title ## font **hello** *hello* ***hello*** .~~hello~~ > reference ## 分割线 *** ## picture ![picture_name](https://ss1.bdstat 阅读全文
posted @ 2021-05-21 11:38 sueg-lee 阅读(34) 评论(0) 推荐(0)
摘要: 题目内容: 题目说起来很简单,你会读到两个字符串,每个字符串占据一行,每个字符串的长度均小于10000字符,而且第一个字符串的长度小于第二个字符串的。你的程序要找出第一个字符串在第二个字符串中出现的位置,输出这些位置,如果找不到,则输出-1。 注意,第一个字符的位置是0。 注意,第一个字符串在第二个 阅读全文
posted @ 2020-08-28 15:45 sueg-lee 阅读(159) 评论(0) 推荐(0)
摘要: 1. int a[] = {5, 15, 34, 54, 14, 2, 52, 72}; 2. int *p = &a[5]; p[-2]为54; 数组a储存连续,a[0]地址低; int* p,q; p为int型指针,q为int型数据类型,没有int*型; 指向数组的指针,用指针名称和数组名称可以 阅读全文
posted @ 2020-08-14 18:37 sueg-lee 阅读(72) 评论(0) 推荐(0)
摘要: c99以前数组元素数量不可为变量 1 return; 2 return 值; 3 遇到return 停止执行,单一出口理念,只要一个return 块{} 变量空间 函数原型(函数声明) 1 void swap();表示参数未知 2 void swap(void);表示没有参数 1 void swap 阅读全文
posted @ 2020-08-12 15:33 sueg-lee 阅读(37) 评论(0) 推荐(0)
摘要: 1 #include<stdbool.h> 2 bool b=6>5; 短路:逻辑运算从左至右,左边结果已经决定就不做右边 条件运算符:自右向左结合 1 count=(count>20)?count-10:count+10; 2 if(count>20) 3 count=count-10; 4 el 阅读全文
posted @ 2020-08-12 15:28 sueg-lee 阅读(5) 评论(0) 推荐(0)