代码拉取完成,页面将自动刷新
DEFTK def
IDENFR func1
LPARENT (
INTTK int
IDENFR a
COMMA ,
INTTK int
IDENFR b
RPARENT )
ARROW ->
INTTK int
LBRACE {
RETURNTK return
IDENFR a
MULT *
IDENFR b
SEMICN ;
RBRACE }
DEFTK def
IDENFR func2_add
LPARENT (
INTTK int
IDENFR a
COMMA ,
INTTK int
IDENFR b
RPARENT )
ARROW ->
INTTK int
LBRACE {
RETURNTK return
IDENFR a
ADD +
IDENFR b
SEMICN ;
RBRACE }
DEFTK def
IDENFR func2_minu
LPARENT (
INTTK int
IDENFR a
COMMA ,
INTTK int
IDENFR b
RPARENT )
ARROW ->
INTTK int
LBRACE {
RETURNTK return
IDENFR a
MINU -
IDENFR b
SEMICN ;
RBRACE }
DEFTK def
IDENFR func2_mult
LPARENT (
INTTK int
IDENFR a
COMMA ,
INTTK int
IDENFR b
RPARENT )
ARROW ->
INTTK int
LBRACE {
RETURNTK return
IDENFR a
MULT *
IDENFR b
SEMICN ;
RBRACE }
DEFTK def
IDENFR func2_div
LPARENT (
INTTK int
IDENFR a
COMMA ,
INTTK int
IDENFR b
RPARENT )
ARROW ->
INTTK int
LBRACE {
RETURNTK return
IDENFR a
DIV /
IDENFR b
SEMICN ;
RBRACE }
CLASSTK Class
IDENFR C
LBRACE {
INTTK int
IDENFR p
SEMICN ;
INTTK int
IDENFR q
SEMICN ;
FUNCTK func
LSS <
INTTK int
GRE >
IDENFR f
SEMICN ;
INTTK int
IDENFR x
LBRACK [
NUMBER 4
RBRACK ]
SEMICN ;
FUNCTK func
LSS <
INTTK int
GRE >
IDENFR f_array
LBRACK [
NUMBER 4
RBRACK ]
SEMICN ;
CONSTRUCTTK constructor
LPARENT (
INTTK int
IDENFR p
COMMA ,
INTTK int
IDENFR q
COMMA ,
INTTK int
IDENFR r
RPARENT )
LBRACE {
IDENFR this
POINT .
IDENFR p
ASSIGN =
IDENFR p
SEMICN ;
IDENFR this
POINT .
IDENFR q
ASSIGN =
IDENFR q
SEMICN ;
IDENFR this
POINT .
IDENFR x
LBRACK [
NUMBER 0
RBRACK ]
ASSIGN =
IDENFR r
ADD +
NUMBER 0
SEMICN ;
IDENFR this
POINT .
IDENFR x
LBRACK [
NUMBER 1
RBRACK ]
ASSIGN =
IDENFR r
ADD +
NUMBER 1
SEMICN ;
IDENFR this
POINT .
IDENFR x
LBRACK [
NUMBER 2
RBRACK ]
ASSIGN =
IDENFR r
ADD +
NUMBER 2
SEMICN ;
IDENFR this
POINT .
IDENFR x
LBRACK [
NUMBER 3
RBRACK ]
ASSIGN =
IDENFR r
ADD +
NUMBER 3
SEMICN ;
RBRACE }
RBRACE }
MAINTK Main
LBRACE {
INTTK int
IDENFR x
ASSIGN =
NUMBER 5
SEMICN ;
INTTK int
IDENFR y
ASSIGN =
NUMBER 6
SEMICN ;
INTTK int
IDENFR z
ASSIGN =
IDENFR func1
LPARENT (
IDENFR x
COMMA ,
IDENFR y
RPARENT )
SEMICN ;
INTTK int
IDENFR i
ASSIGN =
NUMBER 0
SEMICN ;
FUNCTK func
LSS <
INTTK int
GRE >
IDENFR fu
ASSIGN =
IDENFR func1
SEMICN ;
PRINTTK print
LPARENT (
STRCON "{} {}\n"
POINT .
FORMATTK format
LPARENT (
IDENFR fu
LPARENT (
IDENFR x
COMMA ,
IDENFR y
RPARENT )
COMMA ,
IDENFR z
RPARENT )
RPARENT )
SEMICN ;
IDENFR x
ADD +
ADD +
SEMICN ;
IDENFR y
ADD +
ADD +
SEMICN ;
IDENFR C
IDENFR c1
ASSIGN =
IDENFR C
LPARENT (
IDENFR x
COMMA ,
IDENFR y
COMMA ,
IDENFR z
RPARENT )
SEMICN ;
IDENFR c1
POINT .
IDENFR f
ASSIGN =
IDENFR func1
SEMICN ;
IDENFR c1
POINT .
IDENFR f_array
LBRACK [
NUMBER 0
RBRACK ]
ASSIGN =
IDENFR func2_add
SEMICN ;
IDENFR c1
POINT .
IDENFR f_array
LBRACK [
NUMBER 1
RBRACK ]
ASSIGN =
IDENFR func2_minu
SEMICN ;
IDENFR c1
POINT .
IDENFR f_array
LBRACK [
NUMBER 2
RBRACK ]
ASSIGN =
IDENFR func2_mult
SEMICN ;
IDENFR c1
POINT .
IDENFR f_array
LBRACK [
NUMBER 3
RBRACK ]
ASSIGN =
IDENFR func2_div
SEMICN ;
FORTK for
LPARENT (
IDENFR i
ASSIGN =
NUMBER 0
SEMICN ;
IDENFR i
LSS <
NUMBER 4
SEMICN ;
IDENFR i
ADD +
ADD +
RPARENT )
LBRACE {
PRINTTK print
LPARENT (
STRCON "Yeah ! the result is {} {}\n"
POINT .
FORMATTK format
LPARENT (
IDENFR c1
POINT .
IDENFR x
LBRACK [
IDENFR i
RBRACK ]
COMMA ,
IDENFR c1
POINT .
IDENFR f_array
LBRACK [
IDENFR i
RBRACK ]
LPARENT (
IDENFR x
COMMA ,
IDENFR y
RPARENT )
RPARENT )
RPARENT )
SEMICN ;
RBRACE }
PRINTTK print
LPARENT (
STRCON "{}\n"
POINT .
FORMATTK format
LPARENT (
IDENFR c1
POINT .
IDENFR f
LPARENT (
IDENFR c1
POINT .
IDENFR p
COMMA ,
IDENFR c1
POINT .
IDENFR q
RPARENT )
RPARENT )
RPARENT )
SEMICN ;
RBRACE }
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。