ReactOS
0.4.16-dev-340-g0540c21
fib.h
Go to the documentation of this file.
1
#ifndef _fib_h
2
#define _fib_h
3
class
Fibonacci
4
{
5
public
:
6
Fibonacci
() :
v1
(0),
v2
(1) {}
7
inline
int
operator()
();
8
private
:
9
int
v1
;
10
int
v2
;
11
};
12
13
inline
int
14
Fibonacci::operator()
()
15
{
16
int
r
=
v1
+
v2
;
17
v1
=
v2
;
18
v2
=
r
;
19
return
v1
;
20
}
21
#endif
// _fib_h
Fibonacci
Definition:
fib.h:4
Fibonacci::v1
int v1
Definition:
fib.h:9
Fibonacci::v2
int v2
Definition:
fib.h:10
Fibonacci::Fibonacci
Fibonacci()
Definition:
fib.h:6
Fibonacci::operator()
int operator()()
Definition:
fib.h:14
r
GLdouble GLdouble GLdouble r
Definition:
gl.h:2055
v1
GLfloat GLfloat v1
Definition:
glext.h:6062
v2
GLfloat GLfloat GLfloat v2
Definition:
glext.h:6063
sdk
lib
3rdparty
stlport
test
unit
fib.h
Generated on Fri Dec 13 2024 06:13:19 for ReactOS by
1.9.6