This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdlib> | |
#include <ctime> | |
#include <cmath> | |
using namespace std; | |
typedef void (*sorting_fun)(int[], int); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> // There are two different ways to define functions in javascript. | |
> // Functions can be named, or anonymous. | |
> // The named function syntax looks more like a C- or Java-style "statement": | |
> function f(){ } | |
undefined | |
> // Notice it evaluates to "undefined". I'll come back to this in a sec. | |
> // The named function syntax binds the function to a local variable with the given name. | |
> f | |
[Function: f] | |
> // It also actually names the function object: |
NewerOlder