上一页 1 ··· 17 18 19 20 21
摘要: /*******main*******/ #include #include #include "Linklist.h" /* run this program using the console pauser or add your own getch,... 阅读全文
posted @ 2018-03-22 21:39 莫逸风 阅读(50) 评论(0) 推荐(0) 编辑
摘要: /******main.c******/ #include #include #include "Sqlist.h" /* run this program using the console pauser or add your own getch, s... 阅读全文
posted @ 2018-03-22 21:25 莫逸风 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 内置类型比较直接用==判断 字符串比较要用string.h里的函数strcmp(const char *str1,const char *str2)进行比较string.h里的函数strcmp(const char *str1,const char *str2... 阅读全文
posted @ 2018-03-15 20:24 莫逸风 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 二维数组定义的时候,可以不指定行的数量,但是必须指定列的数量。 阅读全文
posted @ 2018-03-06 21:36 莫逸风 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 表达式1 ? 表达式2 : 表达式3; 先判断表达式1的值是否为真,如果是真的话执行表达式2;如果是假的话执行表达式3。 阅读全文
posted @ 2018-03-05 21:39 莫逸风 阅读(54) 评论(0) 推荐(0) 编辑
摘要: /* #define 标识符 #define day main中day=10;仅一次赋值*/ 错误 #define 标识符 常量值 #define day 10; 阅读全文
posted @ 2018-03-05 21:05 莫逸风 阅读(140) 评论(0) 推荐(0) 编辑
摘要: %d:带符号十进制整数 ; %c:单个字符; %s:字符串; %f:6位小数;float; %.2f表示小数点后精确到两位 %lf:6位小数;double; 阅读全文
posted @ 2018-03-05 20:59 莫逸风 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1.创建一个Scanner对象。 2.调用.next()返回一个String类型用一个变量接受。 3.调用该String变量的.charAt(0),获取第一个字符。 Scanner scn=new Scanner(System.in);String s=scn... 阅读全文
posted @ 2018-02-22 20:20 莫逸风 阅读(212) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21