当前位置:网站首页>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;
}
边栏推荐
猜你喜欢
![leetcode:736. LISP syntax parsing [flowery + stack + status enumaotu + slots]](/img/0d/e07fe970167368040eb09b05c3682e.png)
leetcode:736. LISP syntax parsing [flowery + stack + status enumaotu + slots]

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

Draco - gltf model compression tool

进程管理基础

Wireshark installation

Unity custom webgl packaging template
![[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files](/img/20/f7fc2204ca165dcea4af25cb054e9b.png)
[unity] upgraded version · Excel data analysis, automatically create corresponding C classes, automatically create scriptableobject generation classes, and automatically serialize asset files

软件测试——Jmeter接口测试之常用断言

postgresql之整体查询大致过程

用全连接+softmax对图片的feature进行分类
随机推荐
Code line breaking problem of untiy text box
wireshark安装
6-6 vulnerability exploitation SSH security defense
Leetcode:minimum_depth_of_binary_tree解决问题的方法
安全巡检的工作
Pioneer of Web3: virtual human
fiddler的使用
The third season of ape table school is about to launch, opening a new vision for developers under the wave of going to sea
[paper reading | deep reading] rolne: improving the quality of network embedding with structural role proximity
MMDetection3D加载毫米波雷达数据
Derivative, partial derivative, directional derivative
Processus général de requête pour PostgreSQL
一本揭秘字节万台节点ClickHouse背后技术实现的白皮书来了!
纽约大学 CITIES 研究中心招聘理学硕士和博士后
用全连接+softmax对图片的feature进行分类
Data connection mode in low code platform (Part 1)
AWS learning notes (I)
MySQL
6-6漏洞利用-SSH安全防御
postgresql 之 数据目录内部结构 简介