课程编号 : 1089 - 第一册-第二课-变量

课程状态: 运行中    开放 : 公开

课程概要

  • 变量本质上就是一个内存的空间,它是用来存放数据的,由于数据有不类的类据,因此变量根据要存放的数据不同,也有不同的类型,常见的基本数据类型有三种,即整型:程序表示为 intlong long   浮点型(小数):floatdouble   字符型:char 
  • 变量的定义格式:数据类型 变量名称;  比如:int a; 定义一个存放整数的变量 a     float b;  定义一个存放小数的变量 b     char c; 定义一个存放字符的变量 c 
  • 变量的赋值:通过赋值运算符 = ,它的作用是将右边的数值赋给左边的变量,比如 a = 10; 就是将数值 10 赋值给整型变量 a,变量在赋值前必须先定义,也就是必须先定义变量 a 即 int a; 然后才能给变 a 赋值,即:a=10;
  • 变量的输出:cout<<a; 即输出变量 a 中存放的数值,如果 a=10; 则 cout<<a; 输出的结果是 10 ,即变量a中存放的数值
  • 点击 学习视频 开始学习



Download

名次 班级 昵称 解决 累计时间 ABC
11吴思远114322:58:2714322:58:27
25李锦奥343049:43:3514349:40:5414350:01:3714350:01:04
35任敬一15139:38:425136:38:42(-9)
45王晨宇000:00:00(-2)(-1)(-1)
55康艺腾000:00:00(-1)
67李述豪343375:04:5914426:41:0114473:52:4714474:11:11(-1)
77孙仕衡343376:05:2214426:45:52(-2)14473:59:29(-1)14474:20:01
87付锴墨343376:07:5314426:43:30(-4)14473:51:1014474:13:13
97梁睿343423:12:0614474:26:37(-1)14473:54:2114474:11:08(-1)
107韩浩杨228948:08:3614473:55:3614474:13:00
117宋辰煜242536:35:5421267:07:10(-3)21267:28:44(-3)
127宋治锦121267:29:1921267:09:19(-1)(-1)
137张允乐121267:58:0021267:18:00(-2)(-2)
147马跃000:00:00(-4)(-4)(-1)
159裴振宇316752:48:415568:56:42(-1)5591:12:21(-3)5591:19:38
169伍绍廷343327:53:5714426:34:0014426:44:31(-1)14473:55:26(-1)
179何雨衡211134:43:175567:33:00(-9)5567:10:17
189郭怡辰228601:42:4814300:38:1714301:04:31
199祝卓正246550:33:2523275:15:31(-2)(-2)23274:37:54
2012戴传城330471:49:3010026:38:3010027:04:18(-1)10417:46:42
2118郑雅芃343142:53:5914380:44:5114381:01:4514381:07:23
2218李璐000:00:00(-2)
2323赵翌焜125819:25:4825818:45:48(-2)(-1)
2423李子赫126826:58:3626826:38:36(-1)
2555王曦平317576:14:565858:24:35(-1)5858:28:38(-1)5858:21:43(-1)
2657姜懿轩125986:44:0525986:44:05
2763张择壹251134:06:4725314:59:53(-1)(-3)25818:46:54
2876张展硕316737:22:345549:11:025591:36:15(-5)5594:55:17
2976李宛桐351225:33:3517067:40:29(-2)17067:49:48(-1)17089:03:18
3076段熙贝369623:12:0323155:39:22(-5)23232:08:45(-2)23232:43:56(-1)
3176朱元朔228948:34:2814474:00:1114474:14:17(-1)
3276王奕博241123:42:3416899:44:26(-1)24223:58:08
3376管理员15593:22:425593:22:42
3476武铄政000:00:00(-1)
3579丁一阳337080:02:0611209:40:41(-1)11209:57:36(-2)14659:23:49
3679秦缙228117:41:3714058:23:22(-2)14058:38:15(-2)
3779蔡昊翰111210:34:4411209:54:44(-2)
3879侯淤涵111709:42:4811709:02:48(-2)
3980丁硕252321:12:4726160:22:30(-1)26160:30:17
4082宋秉翰000:00:00
4191AC11231244:47:1515621:40:33(-4)15622:46:42(-1)
42108王梓轩120068:46:2720068:46:27(-1)
43108王若涵120068:51:4820068:51:48
44115胡煜岩255301:41:4627820:54:19(-2)27480:47:27
45115苏铭喆125398:38:0225398:38:02
46115马嘉乐000:00:00(-2)
47117张钰竹000:00:00(-4)
48117海宸瑄000:00:00(-4)
49136杨再凯374583:19:0924860:54:5824861:00:50(-1)24861:03:21
50139段伟249685:00:5524841:24:4424842:56:11(-2)
51175哈利波特378567:52:0826188:26:03(-3)26188:31:12(-4)26188:34:53
52175梁奕辰378620:57:3926166:47:2626215:38:4326238:31:30
53175白平越252483:51:5726324:58:36(-3)26157:33:21(-1)
54175连一铭000:00:00(-1)
55177职希文374580:01:3924859:46:26(-1)24859:55:5324859:59:20
56177374580:43:1324859:58:3924860:10:50(-1)24860:13:44
57187韩梦洁249095:17:0324547:14:37(-1)(-1)24547:42:26
58197李老师374583:16:5024861:02:4624860:54:02(-1)24861:00:02
59197郑茗太377984:45:4925994:03:08(-4)25994:26:0525994:56:36
60197李鑫源378472:41:3025988:24:26(-3)25988:57:55(-3)26491:39:09(-5)
61197王瀚石378762:10:1125444:29:34(-1)26658:39:15(-2)26658:01:22
62197张浩宇378762:43:0225444:28:32(-5)26658:34:3426657:59:56
63197李冠桦253993:43:4526996:42:1226997:01:33
64197池科锦255525:36:3527762:20:13(-1)27762:36:22(-1)
65197杜亦童125988:41:2825988:41:28
66197陈俊晰125988:44:3225988:44:32
67197何俊领125989:00:4025989:00:40
68197杨政翰000:00:00(-1)
69198吴思科125152:22:3825152:22:38
70198A125152:24:3225152:24:32
71198B125152:45:3125152:25:31(-1)
72199魏子焓126466:50:5526466:50:55
73199董宜霏126466:50:5926466:50:59
74199贾靖淳126466:57:4126466:57:41
75199李杨126467:09:1026466:49:10(-1)
76199宋钊熠126499:29:4126498:49:41(-2)(-1)
77199杜怡燃000:00:00(-1)
78207王钇燃379496:58:2126498:36:2726498:56:58(-1)26499:04:56
79207岳鑫柯252998:09:5726498:45:0726499:04:50(-1)
80207李彬铎000:00:00(-3)