Nothing too special, but it was an interesting task.

#include <cstdlib>
#include <iostream>
#include <vector>
#define VALUE_ 12
using namespace std;

Fibonacci series using template recursion -- successful

class Fibonacci{
             vector<bool> analyzed;
             bool start;
             unsigned short current, firstN;

            Fibonacci(): analyzed(0), current(0), start(false) {};
            template<unsigned short N>
            inline unsigned short series(){
                     start = true;
                     vector<bool> tempVector(N, false);
                      analyzed = tempVector;
                     (firstN = N);
                if(analyzed[N] == false){
                    analyzed[N] = true;
                    if((this->series<N>() <= firstN)){
                        cout << (this->series<N>()) << " " << flush;
                if(N%2 == 0)
                       return(this->series<N - 2>() + ((this->series<N - 1>())));
                else return (this->series<N - 1>() + ((this->series<N - 2>())));

            static void reset(Fibonacci &fib){
                   fib.start = false;

inline unsigned short Fibonacci::series<1>(){
    if(analyzed[1] == false){
          analyzed[1] = true;
          cout << 1 << " " << flush;
    return 1;

inline unsigned short Fibonacci::series<0>(){
    if(analyzed[0] == false){
          analyzed[0] = true;
          cout << 0 << " " << flush;
    return 0;

#ifdef NUM
#undef NUM
#define NUM VALUE_
#define NUM VALUE_

int main(int argc, char *argv[]){
    Fibonacci fib;
    fib.series<NUM>(); //prints out the entire series up to N
    cout << endl;
    fib.series<NUM - 6>();

#undef NUM
#undef VALUE_

    return 0;
About the Author

I think I finally understand what makes an individual a great programmer.

It's not the degree, and it's not the job...'s the discipline that makes an individual a great programmer.

I know of many people at Daniweb that did not go to college and still became great programmers. This is because they had the [u]discipline[/u] to improve their ability and familiarity with their understanding of programming technologies.

I'd like to thank these individuals, and many others who helped me since I came here:

[Note: Individuals with Professor next to their name were a huge influence to my way of thinking.]

Professor Narue (Truly a great, and very inspirational Software Engineer! )
Professor AD [Ancient Dragon] ( An Expert Programmer who knows how to turn complex problems into practical solutions. /salute )
Professor Ezzaral (Another very inspirational person! )
Professor Radical Edward ( Inspirational and absolutely Admirable! You rock!!! Whoo! XD)
Salem (Though strict, very knowledgeable programmer)
~s.o.s~ (Respectable Designer)
Masijade (Backdoor programmer /salute)
sciwizeh (Programming Prodigy! =) )
williamhemsworth (Programming Prodigy/ Lil Bro! =P )
VernonDozier (Excellent Mathematician/Algorithm Designer )
Duoas (Very analytical Algorithmic Individual with in-depth knowledge of assembly/C++ languages )
ArkM (Bright thinker and experienced programmer)

More to come! O_O