课程编号 : 1088 - 第一册-第一课-输出

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

课程概要

  • 输出就是让计算机将程序的计算结果显示在屏幕上,C++语言的输出函数是 cout 需要引入函数库 iostream,C语言的输出函数是 printf 需要引入函数库 cstdio
  • cout 输出需要结合运算符 << ,比如 输出一个数字: cout<<99;   输出一个字符: cout<<'a';   输出一个字符串  cout<<"abc123";   也可以连续的输出,比如:cout<<99<<'a'<<"abc123";
  • 输出空格,则在双引号里增加一个空格,比如:cout<<" "; 在两个输出之间用一个空格隔开,cout<<99<<" "<<88;        
  • 输出换行,cout 默认只输出在一行上,如果要输出多行,则需要使用换行符 endl  比如:cout<<99<<endl; 则输出后换行,再执行cout<<88;则两行显示
  • 输出小数,保留小数 要引入函数库 iomanip 比如:#include<iomanip>  输出小数时,在要输出的小数前加 cout<<fixed<<setprecision(位数)  比如 输出 56.78943 保留两位小数  cout<<fixed<<setprecision(2)<<56.78943;输出结果是 56.79
  • 点击 学习视频 开始学习



Download

名次 班级 昵称 解决 累计时间 ABCDE
1高梓赫000:00:00
21吴思远571621:52:3514323:59:3414324:09:1114324:19:3614324:37:2914324:46:45
35任敬一525572:14:585113:50:005113:53:345113:58:49(-1)5114:01:425114:50:53(-4)
45李锦奥562033:51:554627:41:3314351:21:1814351:22:5214351:28:4114351:37:31(-1)
55祝钲钦571633:50:5814326:39:38(-1)14326:40:5514326:42:0314326:42:5314326:45:29
65康艺腾5117844:09:5423012:34:3623012:39:1823187:03:3323187:07:1625442:45:11(-6)
75王晨宇416877:55:364061:13:224061:16:064377:32:14(-1)4377:33:54(-1)
85李锦逸29597:34:224798:46:374798:47:45
95黄楷翔111384:16:1911384:16:19
106张钦5115434:56:2923086:39:0923086:48:33(-2)23086:51:4323086:54:5823087:02:06
116竟天瑞246173:42:4523086:39:5523087:02:50
127付锴墨572139:10:0514427:28:5214427:40:0014427:48:5314427:58:3614428:13:44
137李述豪572139:30:3814427:29:3914427:43:0814427:54:0414428:07:0114428:16:46
147孙仕衡572140:18:1614427:30:3214427:39:09(-1)14427:45:43(-2)14427:48:5914428:13:53(-1)
157梁睿572141:19:5414427:40:5914427:54:2314428:27:23(-1)14428:34:2114428:22:48
167韩浩杨457712:05:3414427:31:0814427:52:4214428:09:4214428:32:02
177马跃480480:25:2320119:51:5720120:00:24(-1)20120:04:3320120:08:29(-8)
187宋辰煜482052:44:3820429:25:5320429:28:3820596:32:43(-2)20596:37:24
197宋治锦483170:09:2620792:18:1820792:34:3720792:37:0920792:39:22
207张允乐484596:36:2220791:54:42(-1)21267:19:51(-1)21267:26:31(-1)21268:55:18
219何雨衡527387:48:515447:00:505446:52:205475:52:495476:03:315541:59:21
229郭怡辰571270:30:5214181:41:48(-1)14181:52:54(-1)14301:44:01(-1)14301:53:3814302:18:31
239伍绍廷572139:00:3814427:25:15(-2)14427:30:1814427:33:3014427:39:1014428:12:25
249祝卓正5113886:25:2622777:12:4022777:14:5822777:16:5622777:18:0822777:22:44
259裴振宇422115:30:505501:31:145524:49:035544:31:035544:39:30(-2)
269王一贺460527:54:194629:29:054629:58:4325634:11:5925634:14:32
2710王嘉旋5115534:06:5522925:59:50(-3)22926:05:47(-2)22926:07:5723135:26:1623618:47:05
2810王子乐5117637:17:0823499:07:4023499:14:5423545:50:5923545:58:36(-1)23546:44:59
2910贾子轩5117698:24:5123539:14:0823539:22:0823539:34:24(-1)23539:36:4923539:57:22(-1)
3010徐铭泽247080:08:2423540:05:3723540:02:47
3112戴传城549950:24:129980:10:229980:32:099980:52:479980:45:0110028:03:53
3212王淼420072:27:324468:32:433943:12:075805:20:255855:22:17(-1)
3315吴帅栋4102946:26:4225820:02:08(-2)25652:29:5725819:51:3525652:23:02(-3)
3417张佳译000:00:00
3518郑雅芃588522:32:5714331:43:1419952:13:41(-4)14331:56:1619952:16:43(-2)19952:23:03
3618李璐5127590:33:2425484:26:41(-2)25484:14:0825484:23:1425484:30:3025652:18:51
3718闫凤219960:45:399979:40:189980:45:21(-1)
3818刘老师14796:52:164796:52:16(-1)
3918zmoj15572:11:335572:11:33
4023赵翌焜5127759:01:5125484:00:24(-1)25484:20:14(-5)25484:24:5725652:00:4025652:15:36
4155金梓隽313333:47:204443:18:014444:06:164446:23:03
4255王曦平316715:58:275571:45:535571:46:51(-9)5572:25:43
4356倪好111211:21:1111211:21:11
4457徐俊熙5117233:50:2923446:33:0223446:40:4223446:44:3523446:49:2023447:02:50
4557姜懿轩5127253:48:2024644:48:1625651:58:3725652:07:1725652:10:0825652:44:02
4657黄思远493786:36:2923446:32:1523446:37:1223446:41:0023446:46:02
4757陈怡文000:00:00
4863张择壹5125585:20:3724721:35:30(-1)24721:44:4125172:32:2625316:30:0025651:58:00(-2)
4976张展硕527498:07:305454:53:525456:32:275527:02:29(-14)5526:29:495528:28:53
5076王奕博571621:08:1914323:55:40(-2)14324:00:0314324:03:5914324:08:4114324:19:56
5176李宛桐571621:21:1514323:53:58(-1)14324:08:2014324:12:5814324:17:1914324:28:40
5276段熙贝5115434:32:1423086:36:26(-1)23086:42:5423086:46:28(-1)23086:49:1423086:57:12
5376武铄政457711:16:4814427:27:4714427:41:0714427:54:1114428:13:43
5476管理员316400:35:045426:51:535426:54:285546:48:43
5576朱元朔343283:49:4214427:34:2314427:45:55(-3)14428:29:24
5676温翔森29940:12:024970:05:064970:06:56
5776蔡新杰000:00:00
5878李济帆491792:10:5822947:38:14(-4)22947:42:0422947:44:2322947:46:17
5978武子翔125878:45:5225878:45:52
6079秦缙570300:55:1714060:01:1714060:03:3914060:06:25(-1)14060:07:3114060:16:25
6179蔡昊翰458646:03:1014661:27:2014661:29:2414661:32:0914661:34:17
6279丁一阳466522:48:3614614:56:37(-1)14661:22:2414614:59:20(-1)22630:50:15(-1)
6379王泺清13967:07:543966:47:54(-1)
6479刘骐菘114446:55:5014446:35:50(-1)
6579沈子钦000:00:00(-1)
6680丁硕5130079:35:1225993:52:0625994:13:56(-1)25994:19:4625999:58:40(-1)26096:30:44
6782宋秉翰5117234:23:2423446:36:0523446:42:5623446:48:20(-1)23446:54:4423447:01:19
6882李子轩5117735:54:4123545:50:33(-4)23546:11:36(-3)23546:16:1523546:18:5023548:37:27(-1)
6982方怡舜493787:32:3823446:35:36(-2)23446:42:3223446:46:0723446:48:23
7088苏老师5129263:45:3025851:52:2925852:53:5225852:55:1725852:56:2625853:07:26
7189吴岳轩5129395:44:0425878:47:4525878:51:4225879:03:0925879:12:1925879:29:09(-1)
7291AC11578002:45:4015600:19:2815600:23:2715600:28:4215600:31:2015600:42:43(-1)
7391冯浚杰000:00:00(-1)
74108王梓轩5102702:13:5421245:44:0021245:46:14(-1)20069:44:28(-1)20069:54:5020070:24:22
75108王若涵240140:13:23(-1)(-2)20070:04:5120070:08:32(-1)
76113周靖尧487206:32:2420382:39:5422274:27:5322274:33:2022274:51:17
77115马嘉乐5127350:53:2725469:44:43(-2)25469:53:4525470:05:4125470:07:3225470:21:46
78115胡煜岩5133393:48:2726477:37:0426477:40:1026477:43:14(-1)26477:45:2527482:42:34
79115靳森艺4100697:00:0325173:23:0925174:32:4325174:29:4925174:34:22
80115师康卓4102532:31:5225633:02:5225633:07:3625633:09:5325633:11:31(-2)
81115唐梓轩4106653:35:0026497:31:2726497:32:4826829:04:31(-1)26829:06:14
82115李奕辰375681:31:0425180:03:32(-1)25183:26:5525318:00:37
83115苏铭喆381051:28:3326216:18:56(-6)27392:22:37(-1)27440:27:00
84115毛瑞泽125175:24:0925174:44:09(-2)
85115成柏熙125301:13:0025301:13:00
86115王梓睿125319:12:0525318:32:05(-2)
87117张钰竹5138525:12:5727700:10:1927700:13:4527700:16:0827700:18:5927723:33:46(-2)
88117陈军言4109080:00:1427269:51:3227269:54:3227269:56:31(-1)27269:57:39
89117海宸瑄4110892:37:3627723:03:3527723:08:1427723:11:2327723:14:24(-1)
90117刘睿谦255223:03:1327500:00:1027723:03:03
91117王宸宇255489:39:5527744:48:5227744:51:03(-1)
92117盛恺航127623:36:33(-1)27623:36:33
93117全锦铎127651:43:5627651:43:56
94121沈洪星000:00:00
95136杨再凯5122535:24:4524506:58:2024507:11:5524507:00:5324507:03:1524507:10:22
96169机械公民45116783:07:0723356:31:5823356:33:3723356:36:3523356:43:2123356:41:36
97175梁奕辰5130989:16:2126192:36:46(-1)26192:42:2926192:47:2926192:51:1526217:58:22
98175白平越127625:36:4627624:56:46(-2)
99176张祺铄122878:38:5222878:38:52
100176冯业航000:00:00(-1)
101177职希文499423:38:0424838:51:4924861:24:5224861:29:03(-1)24861:32:20
102177陈韵涵249681:44:4224840:50:1524840:54:27
103177王曼250308:13:4725154:03:3925154:10:08
104177124862:52:1324861:52:13(-3)
105187韩梦洁000:00:00(-1)
106191马老师000:00:00(-1)
107197李老师5124379:43:4324861:45:1024861:50:1324861:54:5524861:58:1924932:15:06
108197李鑫源484797:55:3921199:12:11(-1)21199:24:0021199:27:4721199:31:41
109197张浩宇4102661:57:4425277:50:2225278:02:4525278:10:1026827:54:27
110197王瀚石4102662:11:5525277:49:0325277:59:3725278:08:4826827:54:27(-1)
111197李冠桦4107993:00:3426998:08:3426998:13:4826998:17:0926998:21:03
112197杨政翰366472:05:1826331:43:27(-1)20070:08:1020070:13:41
113197郑茗太252665:20:3126331:44:32(-1)26331:55:59(-4)
114197杜亦童252733:36:0425990:51:0126742:45:03
115197池科锦255480:40:0827740:16:4527740:23:23
116197陈俊晰125990:50:4125990:50:41
117198吴思科4101933:28:1225154:07:5325154:10:5125154:06:00(-1)26470:43:28
118198A376779:43:1625154:07:0825154:11:22(-1)26471:04:46
119198B250310:15:1025154:04:26(-5)25154:10:44(-1)
120199宋佩霖5132352:16:0026469:25:41(-1)26469:31:2026469:16:21(-1)26469:21:0326474:01:35
121199董宜霏5132357:44:4826307:06:0826468:01:1926468:05:1626645:56:3426468:15:31(-1)
122199宋钊熠4105227:44:1226306:50:5626306:55:3126306:57:5326306:59:52
123199任纪硕4105729:02:2926307:01:23(-2)26473:42:2426473:47:0926473:51:33
124199魏子焓4105872:00:4326467:53:2826467:59:4426468:02:5826468:04:33
125199杜怡燃379243:18:1826307:01:2626468:02:52(-1)26468:14:00
126199李杨379268:36:1326332:25:1726467:59:06(-1)26468:11:50
127199陈柯豪252613:57:19(-1)26306:56:1026307:01:09(-2)
128199李芷萱252614:49:4026306:59:32(-1)26307:10:08(-1)
129199贾靖淳252936:18:0826467:55:1826468:02:50(-1)
130199梁硕126307:05:3026307:05:30
131199胡芸溪126307:10:53(-1)26307:10:53
132199李思祺126307:30:5526307:10:55(-1)
133199秦艺萌000:00:00
134202谢子恒5135743:22:0527142:32:11(-1)27142:28:0727142:37:4127142:41:4727172:42:19
135205刘超125882:23:14(-1)25882:23:14
136207丁怡萌5131663:14:1626332:25:5426332:32:3726332:36:1526332:40:1626332:59:14
137207岳鑫柯5131663:59:0426332:28:56(-1)26332:32:5326332:37:1526332:40:0026333:00:00(-1)
138207王钇燃4105330:06:0726332:27:3126332:30:4326332:32:5426332:34:59(-5)