Next: C++ Implementation 3/11
Up: Von C++ zu Java
Previous: C++ Implementation 1/11
#ifndef __COUNTER_H__
#define __COUNTER_H__
#include "FourInaRow.h"
class Counter
{
public:
static void prelude(void);
Counter();
Counter(const char);
Counter(const int);
char colour(void) const; // Returns the colour of a counter
void display(void) const; // Display the counter
private:
static int the_counter_no; // Which colour to allocate next
char the_colour; // The colour of the counter
};
#endif
| © 1997 Gottfried Rudorfer, C++-AG, Lehrveranstaltungen, Abteilung für Angewandte Informatik, Wirtschaftsuniversität Wien, 3/19/1998 |