当前位置:网站首页>Huitong programming introductory course - 2A breakthrough
Huitong programming introductory course - 2A breakthrough
2022-07-07 02:39:00 【Middle school student Xinjing】

The content after the double slash in the following code is teacher Liu's comment , No need for students to input
Forward 100
int main() {
//pen: paint brush
//fd: Forward
//pen.fd(100): Brush forward 100 Step
pen.fd(100);
return 0;
}
Lateral advance 100
int main() {
//rt: Turn right
//pen.rt(90): Turn the brush right 90 degree
pen.rt(90);
pen.fd(100);
return 0;
}
draw 7 word
int main() {
pen.fd(200);
//lt: Turn left
//pen.lt(90): Brush left 90 degree
pen.lt(90);
pen.fd(100);
return 0;
}
draw U shape
int main() {
pen.fd(200);
//pen.rt(90).fd(150): Turn the brush right 90 degree , Forward 150 Step
pen.rt(90).fd(150);
//hide: hide
//pen.rt(90).fd(200).hide(); Turn the brush right 90 degree , Forward 200 Step , hide
pen.rt(90).fd(200).hide();
return 0;
}
draw T shape
int main() {
pen.fd(200).rt(90);
//bk: back off
//pen.fd(100).bk(200): Brush forward 100, back off 200
pen.fd(100).bk(200);
pen.hide();
return 0;
}
Draw a cross
int main() {
//pen.fd(100).bk(200): Brush forward 100 Step , back off 200 Step
pen.fd(100).bk(200);
//pen.fd(100).rt(90): Brush forward 100 Step , Turn right 90 degree
pen.fd(100).rt(90);
pen.fd(100).bk(200);
return 0;
}
边栏推荐
- [C # notes] reading and writing of the contents of text files
- CDB PDB 用户权限管理
- postgresql之integerset
- Summer Challenge database Xueba notes (Part 2)~
- Fundamentals of process management
- Yyds dry goods inventory # solve the real problem of famous enterprises: maximum difference
- [leetcode]Search for a Range
- CSDN 夏令营课程 项目分析
- dotConnect for DB2数据提供者
- 如何设计好接口测试用例?教你几个小技巧,轻松稿定
猜你喜欢
![[paper reading | deep reading] dngr:deep neural networks for learning graph representations](/img/8e/41a80131c6ec7a7cdffe4a77012fed.png)
[paper reading | deep reading] dngr:deep neural networks for learning graph representations

postgresql之整體查詢大致過程

3--新唐nuc980 kernel支持jffs2, Jffs2文件系统制作, 内核挂载jffs2, uboot网口设置,uboot支持tftp

AWS learning notes (I)

Web3's need for law

Unity custom webgl packaging template

1 -- Xintang nuc980 nuc980 porting uboot, starting from external mx25l

电气工程及其自动化

C#/VB.NET 删除Word文档中的水印

人脸识别应用解析
随机推荐
【森城市】GIS数据漫谈(二)
Linear list --- circular linked list
Wireshark installation
所谓的消费互联网仅仅只是做行业信息的撮合和对接,并不改变产业本身
MES管理系统的应用和好处有哪些
Error in fasterxml tostringserializerbase
STM32项目 -- 选题分享(部分)
C语言练习题_1
Integerset of PostgreSQL
实施MES管理系统时,哪些管理点是需要注意的
Pgadmin4 of PostgreSQL graphical interface tool
企业中台建设新路径——低代码平台
Halcon instance to opencvsharp (C openCV) implementation -- bottle mouth defect detection (with source code)
MMDetection3D加载毫米波雷达数据
一文读懂Faster RCNN
The panel floating with the mouse in unity can adapt to the size of text content
[server data recovery] data recovery case of a Dell server crash caused by raid damage
[unity notes] screen coordinates to ugui coordinates
Draco - gltf model compression tool
Leetcode:minimum_depth_of_binary_tree解决问题的方法