当前位置:网站首页>慧通编程入门课程 - 2A闯关
慧通编程入门课程 - 2A闯关
2022-07-06 18:51:00 【中学生信竞】

以下代码中双斜杠后面的内容是刘老师的注释,不需要同学们输入
前进100
int main() {
//pen:画笔
//fd:前进
//pen.fd(100):画笔前进100步
pen.fd(100);
return 0;
}
横向前进100
int main() {
//rt:右转
//pen.rt(90):画笔右转90度
pen.rt(90);
pen.fd(100);
return 0;
}
画7字
int main() {
pen.fd(200);
//lt:左转
//pen.lt(90):画笔左转90度
pen.lt(90);
pen.fd(100);
return 0;
}
画U形
int main() {
pen.fd(200);
//pen.rt(90).fd(150):画笔右转90度,前进150步
pen.rt(90).fd(150);
//hide:隐藏
//pen.rt(90).fd(200).hide(); 画笔右转90度,前进200步,隐藏
pen.rt(90).fd(200).hide();
return 0;
}
画T形
int main() {
pen.fd(200).rt(90);
//bk:后退
//pen.fd(100).bk(200):画笔前进100,后退200
pen.fd(100).bk(200);
pen.hide();
return 0;
}
画十字形
int main() {
//pen.fd(100).bk(200):画笔前进100步,后退200步
pen.fd(100).bk(200);
//pen.fd(100).rt(90):画笔前进100步,右转90度
pen.fd(100).rt(90);
pen.fd(100).bk(200);
return 0;
}
边栏推荐
- #夏日挑战赛#数据库学霸笔记(下)~
- Processing image files uploaded by streamlit Library
- 安德鲁斯—-多媒体编程
- 所谓的消费互联网仅仅只是做行业信息的撮合和对接,并不改变产业本身
- 1个月增长900w+播放!总结B站顶流恰饭的2个新趋势
- Sensor: DS1302 clock chip and driver code
- Yyds dry goods inventory # solve the real problem of famous enterprises: maximum difference
- Data connection mode in low code platform (Part 1)
- String or binary data will be truncated
- #yyds干货盘点# 解决名企真题:最大差值
猜你喜欢

Several classes and functions that must be clarified when using Ceres to slam
![leetcode:736. LISP syntax parsing [flowery + stack + status enumaotu + slots]](/img/0d/e07fe970167368040eb09b05c3682e.png)
leetcode:736. LISP syntax parsing [flowery + stack + status enumaotu + slots]

Tiflash source code reading (IV) design and implementation analysis of tiflash DDL module

Draco - glTF模型压缩利器

Apifox,你的API接口文档卷成这样了吗?

Lidar: introduction and usage of ouster OS

豆瓣平均 9.x,分布式领域的 5 本神书!

Summer Challenge database Xueba notes (Part 2)~

Go swagger use

【论文阅读|深读】DNGR:Deep Neural Networks for Learning Graph Representations
随机推荐
安全交付工程师
【论文阅读|深读】RolNE: Improving the Quality of Network Embedding with Structural Role Proximity
Integerset of PostgreSQL
The empirical asset pricing package (EAP) can be installed through pypi
Infrared camera: juge infrared mag32 product introduction
1个月增长900w+播放!总结B站顶流恰饭的2个新趋势
The cities research center of New York University recruits master of science and postdoctoral students
1 -- Xintang nuc980 nuc980 porting uboot, starting from external mx25l
Untiy文本框的代码换行问题
Draco - gltf model compression tool
unity中跟随鼠标浮动的面板,并可以自适应文字内容的大小
[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files
遇到慢SQL该怎么办?(下)
Freeswitch dials extension number source code tracking
【森城市】GIS数据漫谈(二)
Yyds dry goods inventory # solve the real problem of famous enterprises: maximum difference
postgresql之整体查询大致过程
Increase 900w+ playback in 1 month! Summarize 2 new trends of top flow qiafan in station B
MySQL
Gee upgrade can realize one piece of run tasks