//IteratorTablou.h

#ifndef ITERATORTABLOU_H
#define ITERATORTABLOU_H

namespace Tema08 {

    class TestIterator
    {
        int *_crt;

    public:
        int IteratorTablou(int *crt = 0);

    };

    void TestIterator();
}

#endif // ITERATORTABLOU_H





//IteratorTablou.cpp

#include "IteratorTablou.h"

namespace Tema08 {

    int TestIterator::IteratorTablou(): crt(_crt)
    {

    }


    void TestIterator()
    {

    }
}

line 32 should be int IteratorTablou(int *crt = 0): crt(_crt)

You should also be returning a value from the function since you have an int return type. If you don't want to have a return then make the function void.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.