ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

fib.h
Go to the documentation of this file.
00001 #ifndef _fib_h
00002 #define _fib_h
00003 class Fibonacci
00004 {
00005   public:
00006     Fibonacci() : v1(0), v2(1) {}
00007     inline int operator()();
00008   private:
00009     int v1;
00010     int v2;
00011 };
00012 
00013 inline int
00014 Fibonacci::operator()()
00015 {
00016   int r = v1 + v2;
00017   v1 = v2;
00018   v2 = r;
00019   return v1;
00020 }
00021 #endif // _fib_h

Generated on Sat May 26 2012 04:34:15 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.