Questions et réponses pour le function :

A function (also called a procedure, method, subroutine, or routine) is a portion of code intended to carry out a single, specific task. Use this tag for questions which specifically involve creating or calling functions. For help implementing a function to perform a task, use [algorithm] or a task-specific tag instead.

8
votes
J'ai un morceau de code qui définit une fonction qui prend une fonction comme argument, comme: xxx maintenant, je souhaite fournir une valeur par défa ...

8
votes
J'ai vu cette fonction de tri fonctionne bien: xxx mais je ne comprends pas vraiment la mécanique de cette petite fonction. Quand il s'agit de comparer ...

8
votes
Voici un exemple: function ChildF() { #Creating new function dynamically $DynFEx = @" function DynF() { "Hello DynF" } "@ Invoke-Expression $DynFEx #Calling in ChildF scope ...

8
votes
Y a-t-il de bonnes façons de savoir comment une fonction fonctionne dans C? Je voudrais, par exemple, comparez ma propre fonction à une fonction de bibliothèque. ...