Слово
«function»впервые сказано пользователем
гость 30.05.2005 в 23:24,
и с тех пор употреблялось
215 раз.
Сообщения со словом
«function»
Запрос выполнился за
0.0080 сек.
- 09.10.2011, 01:37. jiffy в теме
«The C Programming Language.»
... added benefit of warning you when you re nesting your functions too deep heed that warning табуляция должна быть 8 символов и таким образом отступ тоже составляет 8 символов существуют еретические течения пытающиеся сделать отступы равными 4 или даже 2 символам и это похоже на попытки определить число пи равным 3 причина вся идея отступов заключается в том чтобы ясно определить где начинается и заканчивается программный блок особенно в том случае если вы смотрите на экран 20 часов подряд вы обнаружите что гораздо легче сообразить к чему относится тот или иной набор инструкций если у вас большие отступы некоторые люди возражают что 8-ми символьные отступы сдвигают код слишком сильно вправо что делает чтение кода за 80-ми символьным текстовым терминалом довольно сложным занятием ответ заключается в том что если вам нужно более трех уровней отступа вы уже испортили дело и вам нужно исправить вашу программу резюмируя 8-ми символьные отступы делают чтение более легким занятием и дополнительно предупреждают вас если вы имеете в функции слишком большой уровен вложенности не оставляйте без внимания это предупреждение 2 chapter 4 naming c is a spartan language and so should your naming be unlike modula-2 and pascal programmers c programmers do not use cute names like thisvariableisatemporarycounter a c programmer would call that variable tmp which is much easier to write and not the least more difficult to understand however while mixed-case names are frowned upon descriptive names for global variables are a must to call a global function foo is a shooting offense global variables to be used only if you really need them need to have descriptive names as do global functions if you have a function that counts the number of active users you should call that count active users or similar you should not call it cntusr encoding the type of a function into the name so-called hungarian notation...
- 04.10.2011, 21:07. RPG в теме
«Встреча LUG-а в сентябре 2011 (для первокурсников)»
код local ticket 1 1 1 2 5 7 local operations function a b return a b end function a b return a b end function a b return a b end function a b return a b end local operation local floor math floor local pow math pow for i 0 math pow operations ticket 1 do operation i for j 1 ticket do operation i j operations floor i pow operations j-1 operations 1 end end local operations str binarytrees function vert if vert 0 then return false else local buf for leften 0 vert 1 do local righten vert leften 1 for left in pairs binarytrees leften do for right in pairs binarytrees righten do table insert buf left right end end end return buf end end local c opc oper operbuf local op function a b opc opc 1 return operbuf opc a b end local aa bb evaltree function tree if tree false then c c 1 return ticket c-1 else return op evaltree tree 1 evaltree tree 2 end end local op str function a b opc opc 1 return a operations str math floor oper math pow operations opc-1 operations 1 b end evaltreeprint function tree if tree false then c c 1 return ticket...
- 26.09.2011, 18:52. login в теме
«Числаки»
... cot cotan end subroutine trig x f y y f x return end function cot x cot 1 0 tan x return end возможно implicit...
- 26.09.2011, 17:23. Nick_ в теме
«Числаки»
... другую функцию то есть мне надо сделать так код real function func1 x real x func1 sin x return end real function func2 x real x func2 cos x return end real function superfunc f1 f2 val c что тут писать real...
- 16.08.2011, 17:10. Itheme в теме
«Доучился до 4-го курса, а знаний не ощущаю :(»
... texample somevar tdelegatedcomparer texample construct function const left right texample integer begin result...
- 29.05.2011, 17:49. Live.Mephist.ru в теме
«Неврастения»
... сейчас сделать расслабься отключи мозг всё будет хорошо function blinkingwords var s document getelementbyid...
- 21.03.2011, 02:52. .kkursor в теме
«Линукс и мелкомягкие»
... gw os linux fi check inet check internet connection function check inet ping -c 1 ping hostname dev null 2 dev null echo see which gateway is currently in use echo date detecting current gateway function current gw if os bsd then gw netstat -rn grep...
- 20.03.2011, 23:02. RPG в теме
«Спецэффекты на осциллографе»
... lua который рисует музыку код updaterate 1 15 15 fps function love load arg src love sound newsounddata arg 2 or oscillofun ogg source love audio newsource src love graphics setpointsize 5 source play end local it x y ms 1 function love draw for n 1 src getsamplerate updaterate...
- 23.11.2010, 12:01. RPG в теме
«Шаманства с движком вики»
код php wgextensionfunctions wfyoutube wgextensioncredits parserhook array name youtube description display youtube video author rpg url http scriptumplus ru function wfyoutube global wgparser wgparser- sethook youtube renderyoutube the callback function for converting the input text to html output function renderyoutube input if preg match a-za-z0-9...
- 23.11.2010, 01:54. Ramzes в теме
«Проект Wiki: Энциклопедия МИФИ»
... mephist ru htdocs wikifiles includes parser oldpp php function require-once failed to open stream no such file or directory in var www corumtest mephist ru htdocs wikifiles extensions fckeditor fckeditor php on line 34 fatal error require once function require failed opening required var www corumtest...