Typedef. Creates an alias for type. This show's an example with the Fibonaci numbers.
#include
Date Created:Tuesday November 30th, 1999 12:00 AM
Date Modified:Tuesday November 30th, 1999 12:00 AM
This page has special access
> position; cout << "\n"; answer = fib(position); cout << answer << " is the "; cout << position << "th Fibonacci number.\n"; } ULONG fib(ULONG n) { ULONG minus_two=1, minus_one=1, answer=2; if (n < 3) return 1; for (n -= 3; n; n -- ) { minus_two = minus_one; minus_one = answer; answer = minus_one + minus_two; } return answer; }" /> > position; cout << "\n"; answer = fib(position); cout << answer << " is the "; cout << position << "th Fibonacci number.\n"; } ULONG fib(ULONG n) { ULONG minus_two=1, minus_one=1, answer=2; if (n < 3) return 1; for (n -= 3; n; n -- ) { minus_two = minus_one; minus_one = answer; answer = minus_one + minus_two; } return answer; }" />

Typedef. Creates an alias for type. This show's an example with the Fibonaci numbers.
#include
Date Created:Tuesday November 30th, 1999 12:00 AM
Date Modified:Tuesday November 30th, 1999 12:00 AM
This page has special access