Skip to content

Commit 0bc903b

Browse files
authored
Translate 04top-statements.md
1 parent d9306ea commit 0bc903b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/en/quickstart/02base/04top-statements.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
lastUpdated: true
33
---
44

5-
# 顶层语句
5+
# Top statement
66

7-
在MCFPP中,允许在文件的开始直接编写语句而无需额外定义函数,即顶层语句。顶层语句处于一个隐式的函数中,这个函数每个文件有且只有一个,且不能被外部调用。它的返回值类型为`void`
7+
In MCFPP, allows programming statements in the start of the file and don’t need to declare extra function, that’s the top statement. Top statement places in a hidden function, each file have one and only one of this function, and it cannot be called externally. Its returned value’s type is `void`.
88

99
```mcfpp
1010
print("Top statement");
@@ -14,9 +14,9 @@ func main(){
1414
}
1515
```
1616

17-
在编译后,会生成两个函数——分别对应main函数以及顶层语句对应的默认函数。
17+
After compiling, it’ll form two functions —— corresponding to main function and the default functions of top statement respectively.
1818

19-
顶层语句只能在文件的开始编写,即在函数定义或类定义之前。顶层语句可以调用文件中声明的其他函数和类
19+
Top statement only can program in the start of the file, which is before the declaration of any functions or classes. Top statement can call the other functions and classes that’s declared in the file.
2020

2121
```mcfpp
2222
main();

0 commit comments

Comments
 (0)