Изменения

Перейти к: навигация, поиск

Участник:Sementry/Гайд по vizi

700 байт добавлено, 06:53, 20 января 2012
Пример функции
<auto id = "test" description = "факториал">
<variable description = "Переменная цикла для test" name = "testI" type = "int" /> <step id = "testInit" description = "" level = "-1"> <action> @testI @= 1; @testResult @= 1; </action> </step> <while id="testLoop" description="loop" test="@testI &lt; = @testArgument"<nowiki><!--после амперсанда пробела не должно быть--></nowiki> level="-1" > <step id = "testLoop1" description = "ololo" level = "-1"> <action> @testResult @= @testResult * @testI; @testI @= @testI + 1; </action> </step> </while>
</auto>
 
По невыясненной причине все функции должны быть описаны в самом конце тега algorithm.
 
=== Пример вызова функции ===
 
<step id = "testArgs" description = "" level = "-1">
<action>
@testArg @= @n;
</action>
</step>
<call-auto id = "test" />
<step id = "getFact" description = "" level = "-1">
<action>
@fact @= @testResult;
</action>
</step>
== %your_project%-configuration.xml ==
1302
правки

Навигация