Learning programming experienc
Java使我强大
这个作者很懒,什么都没留下…
展开
-
c scanf
scanf("%d,%d", &a, &b); 还有,你这句输入时,a b 数据之间还要加逗号。例如 12,34因为格式里有逗号。转载 2018-03-06 22:43:02 · 239 阅读 · 0 评论 -
c
p = (a + b + c) / 2.0;改变int型为double型加2.0原创 2018-03-08 09:03:28 · 121 阅读 · 0 评论 -
c
case 1://数字不打'',直接输入1 case'+':原创 2018-03-08 09:51:14 · 135 阅读 · 0 评论 -
链表
定义一个有头链表Student m_head={0,"head",null}或者Student m_head={0} #include<stdio.h>#include<stdlib.h>#include<string.h>struct Student{ int id; char name[16]; Student* next;// 指向链表的下一个对象}; /...转载 2018-03-04 21:42:51 · 137 阅读 · 0 评论 -
c programmer
结构体变量定义有三种方法1) 先定义结构体,然后在定义结构体变量struct Student{//学生学号int sno;//学生姓名char name[21];//学生年龄int age;// 学生成绩float score;};注意: 1)结构体定义完成以后,计算机并不会给结构体分配内存空间2)会在定义结构体变量后,分配存储空间//结构体变量定义格式:struct 结构体名 结构体变量名;s...转载 2018-03-05 10:19:52 · 198 阅读 · 0 评论