Francis said:
But, unless I have completely lost track, we were not discussing a
header (I have never come across a header with main() in it.
Nope. Here's the original code under discussion:
-----------
#ifndef _COUNTER_H
#define _COUNTER_H
#include <iostream>
using namespace std;
class Counter
{
public:
int count;
public:
* Counter(){count = 0;}
void operator ++() { ++count; }
int GetCount() { return count; }
void SetCount( int c ) { count = c; }
void PrintCount() { cout << "\n The count is " << count; }
};
class NewCounter
ublic Counter
{
public:
* void operator --() { --count; }
};
#endif
Much better is to actually understand what using declarations and
using directives do.
Indeed. Feel up to posting a tutorial? I didn't. The people in question
should find a good book that explains the subject. Now, if we only knew
of some web site or something that reviewed books
Brian