Add(MainForm,2953706,168,126) { Height=308 link(onCreate,5911507:doRandomize,[]) } Add(Timer,6614711,168,77) { Interval=300 link(onTimer,8269479:doEvent1,[]) } Add(Random,9199287,259,84) { Min=-10 Max=10 link(onRandom,4131791:doOperation,[]) } Add(Math,4131791,357,84) { ResultType=0 Default=100 Point(doClear) link(onResult,4435013:doText,[]) link(Op1,8052055:Var1,[(363,76)(352,76)(352,131)]) } Add(Hub,8269479,217,77) { OutCount=5 link(onEvent1,7602317:doData,[(245,83)(245,48)]) link(onEvent2,9199287:doRandom,[]) link(onEvent3,5911507:doRandom,[(252,97)(252,139)]) link(onEvent4,3308920:doRandom,[(245,104)(245,188)]) link(onEvent5,8602037:doEvent1,[(238,111)(238,209)(205,209)(205,307)]) } Add(Random,5911507,259,133) { Min=-10 Max=10 link(onRandom,4051062:doOperation,[]) } Add(Math,4051062,378,133) { ResultType=0 Default=100 Point(doClear) link(onResult,14039007:doText,[]) link(Op1,6965228:Var1,[(384,126)(375,126)(375,173)]) } Add(Random,3308920,259,182) { Min=-10 Max=10 link(onRandom,8930215:doOperation,[]) } Add(Math,8930215,399,182) { ResultType=0 Default=100 Point(doClear) link(onResult,10912885:doText,[]) link(Op1,16160721:Var1,[(405,172)(396,172)(396,222)]) } Add(Edit,4435013,455,84) { Left=115 Top=10 ReadOnly=0 Point(doColor) link(onChange,11379485:doWork1,[(502,90)]) } Add(Edit,14039007,455,133) { Left=115 Top=50 ReadOnly=0 Point(doColor) link(onChange,11379485:doWork2,[]) } Add(Edit,10912885,455,182) { Left=115 Top=95 ReadOnly=0 Point(doColor) link(onChange,10812530:doWork2,[]) } Add(If_else,11415624,336,301) { Type=2 link(onTrue,15268824:doCompare,[]) link(onFalse,12698066:doCompare,[(390,314)(390,349)]) link(Op1,3987749:Var2,[]) link(Op2,7867874:Var2,[]) } Add(If_else,15268824,420,301) { Type=2 link(onTrue,14169991:doEvent1,[]) link(onFalse,12539715:doWork1,[(464,314)]) link(Op1,3987749:Var3,[(426,285)]) link(Op2,12228311:Var3,[(433,276)]) } Add(If_else,12698066,399,343) { Type=2 link(onTrue,12539715:doWork3,[(464,349)]) link(onFalse,5050682:doEvent1,[]) link(Op1,12228311:Var2,[]) link(Op2,7867874:Var3,[(412,292)]) } Add(GetDataEx,12228311,399,271) { Angle=3 link(Data,15030449:Var2,[(363,276)]) } Add(HubEx,12539715,460,322) { link(onEvent,1136356:doEvent1,[]) } Add(DoData,4783321,259,301) { Data=Integer(255) link(onEventData,11415624:doCompare,[]) } Add(GetDataEx,7867874,343,287) { link(Data,11449519:Var2,[]) } Add(GetDataEx,6965228,378,168) { link(Data,4051062:Result,[]) } Add(GetDataEx,8052055,357,126) { link(Data,4131791:Result,[]) } Add(GetDataEx,16160721,399,217) { link(Data,8930215:Result,[]) } Add(GetDataEx,3987749,336,280) { link(Data,16160721:Var2,[(342,257)(405,257)]) } Add(DoData,7602317,259,42) { Data=Integer(16777215) link(onEventData,12859755:doEvent1,[]) } Add(Hub,12859755,371,42) { OutCount=3 link(onEvent1,14477539:doWork1,[(447,48)]) link(onEvent2,16565744:doWork1,[(441,55)]) link(onEvent3,726456:doWork1,[(435,62)]) } Add(HubEx,14477539,443,98) { link(onEvent,4435013:doColor,[]) } Add(HubEx,16565744,437,147) { link(onEvent,14039007:doColor,[]) } Add(HubEx,726456,431,196) { link(onEvent,10912885:doColor,[]) } Add(InfoTip,14265649,329,259) { Info=#23:Номер максимума из трёх| Width=253 Height=130 } Add(ChanelToIndex,10803250,539,322) { Count=4 link(onIndex,6707326:doText,[]) } Add(Hub,14169991,476,301) { link(onEvent1,726456:doWork3,[(500,307)(500,251)(435,251)]) link(onEvent2,10803250:doWork3,[(525,314)(525,342)]) } Add(Hub,1136356,476,322) { link(onEvent1,14477539:doWork3,[(514,328)(514,237)(447,237)]) link(onEvent2,10803250:doWork1,[(519,335)(519,328)]) } Add(Hub,5050682,476,350) { link(onEvent1,16565744:doWork3,[(507,356)(507,244)(441,244)]) link(onEvent2,10803250:doWork2,[(531,363)(531,335)]) } Add(Label,6707326,630,322) { Left=120 Top=125 } Add(GetIndexData,15871385,301,434) { Count=3 link(onIndex,13000202:doValue,[]) link(Data1,15030449:Var1,[(307,229)]) link(Data2,11449519:Var1,[(314,236)]) link(Data3,3987749:Var1,[(321,285)]) } Add(For,6081258,259,434) { End=2 link(onEvent,15871385:doIndex,[]) } Add(Hub,8602037,217,301) { OutCount=3 link(onEvent1,4783321:doData,[]) link(onEvent2,6081258:doFor,[(249,314)(249,440)]) link(onEvent3,3704606:doEvent1,[(243,321)(243,340)(205,340)(205,608)]) } Add(GetDataEx,15030449,357,224) { link(Data,8052055:Var2,[]) } Add(GetDataEx,11449519,343,231) { link(Data,6965228:Var2,[(349,219)(384,219)]) } Add(Memory,13000202,350,434) { Point(Data) link(onData,6628909:doCompare,[]) link(Data,15871385:Var,[(356,429)(342,429)(342,478)(307,478)]) } Add(Memory,5279686,539,441) { Point(Data) } Add(If_else,6628909,399,434) { Type=1 Op2=Integer(1) link(onTrue,11428409:doEvent1,[(437,440)(437,426)]) link(onFalse,2671151:doCompare,[]) link(Op1,10224062:Var1,[(405,422)(391,422)]) } Add(If_else,2671151,448,441) { Type=2 link(onTrue,7104873:doEvent1,[]) link(Op2,5279686:Value,[(461,429)(485,429)(485,484)(545,484)]) } Add(Memory,14059809,581,420) { Default=Integer(0) Point(Data) link(onData,5842355:doText,[]) link(Data,10224062:Var3,[(587,410)(440,410)(440,481)]) } Add(GetDataEx,10224062,385,476) { Angle=3 link(Data,6081258:Position,[(265,481)]) } Add(Label,5842355,630,420) { Left=120 Top=150 } Add(Hub,7104873,497,441) { link(onEvent1,15083111:doWork2,[]) link(onEvent2,1991233:doWork3,[(521,454)]) } Add(HubEx,1991233,517,420) { link(onEvent,14059809:doValue,[]) } Add(Hub,11428409,497,420) { link(onEvent1,1991233:doWork2,[]) link(onEvent2,15083111:doWork1,[(529,433)]) } Add(HubEx,15083111,525,441) { link(onEvent,5279686:doValue,[]) } Add(InfoTip,14622963,245,399) { Info=#43:Номер максимума из неизменяемого количества| Width=379 Height=123 } Add(IntegerArray,9082310,308,560) { IntArray=[] } Add(ArrayRW,11103333,406,616) { Index=Integer(0) link(onRead,12801125:doFind,[]) link(Array,8031076:ArraySort,[(412,608)(401,608)(401,660)(314,660)]) link(Index,12348603:Result,[(419,604)(395,604)(395,655)(363,655)]) } Add(ArraySort,8031076,308,616) { ArrayType=1 link(onEndSort,12348603:doOperation,[]) link(Array,6784945:Var2,[]) } Add(ArrayFind,12801125,455,616) { ArrayType=1 link(onFind,2863539:doText,[]) link(Array,6784945:Var3,[(461,600)]) link(Index,9227920:Value,[]) link(Value,11103333:Item,[(475,608)(445,608)(445,660)(412,660)]) } Add(GetDataEx,6784945,308,595) { link(Data,9082310:Array,[]) } Add(ArrayRW,1111933,259,616) { link(Array,16716611:Var1,[(265,600)]) } Add(HubEx,11379485,498,133) { Angle=1 link(onEvent,10812530:doWork1,[]) } Add(HubEx,10812530,498,182) { Angle=1 link(onEvent,1111933:doAdd,[(502,223)(188,223)(188,636)]) } Add(Hub,3704606,217,602) { OutCount=3 link(onEvent1,8031076:doSort,[(302,608)(302,622)]) link(onEvent2,714334:doEnum,[(239,615)(239,734)]) link(onEvent3,9082310:doClear,[(269,622)(269,580)]) } Add(Math,12348603,357,616) { OpType=1 Op2=1 ResultType=0 link(onResult,11103333:doRead,[]) link(Op1,8031076:Count,[(363,607)(347,607)(347,655)(321,655)]) } Add(Label,2863539,630,616) { Left=120 Top=180 } Add(Memory,9227920,462,560) { Default=Integer(0) } Add(InfoTip,8647433,210,532) { Info=#48:Номер максимума из любого количества сортировкой|30:(Спасибо NESCO за массивы :-))| Width=295 Height=137 } Add(ArrayEnum,714334,287,728) { link(onItem,6201291:doCompare,[]) link(Array,16716611:Var2,[]) } Add(Memory,12223558,476,735) { Point(Data) } Add(If_else,6201291,336,728) { Type=1 Op2=Integer(1) link(onTrue,13448951:doEvent1,[(374,734)(374,720)]) link(onFalse,5446551:doCompare,[]) link(Op1,10725054:Var1,[(342,716)(328,716)]) } Add(If_else,5446551,385,735) { Type=2 link(onTrue,14009301:doEvent1,[]) link(Op2,12223558:Value,[(398,723)(422,723)(422,778)(482,778)]) } Add(Memory,6033818,518,714) { Default=Integer(0) Point(Data) link(onData,16352030:doText,[]) link(Data,10725054:Var3,[(524,704)(377,704)(377,775)]) } Add(GetDataEx,10725054,322,770) { Angle=3 link(Data,714334:Index,[(300,775)]) } Add(Hub,14009301,434,735) { link(onEvent1,14881406:doWork2,[]) link(onEvent2,7136826:doWork3,[(458,748)]) } Add(HubEx,7136826,454,714) { link(onEvent,6033818:doValue,[]) } Add(Hub,13448951,434,714) { link(onEvent1,7136826:doWork2,[]) link(onEvent2,14881406:doWork1,[(466,727)]) } Add(HubEx,14881406,462,735) { link(onEvent,12223558:doValue,[]) } Add(GetDataEx,16716611,287,595) { Angle=1 link(Data,6784945:Var1,[]) } Add(InfoTip,8600274,273,679) { Info=#46:Номер максимума из любого количества перебором| Width=302 Height=137 } Add(Label,16352030,630,714) { Left=120 Top=205 }