Skip to content

Instantly share code, notes, and snippets.

@Tzal3x
Tzal3x / gist:2585d57b0193851530cab715c6a5ec1e
Created November 1, 2017 13:53
Λύση άσκησης 13.6 απο το Βιβλίο "Η C++ σε βάθος" του Νίκου Μ. Χατζηγιαννάκη
#include <iostream>
using namespace std;
class kafetiera{
int kafes,gala,zaxari,nero,kafedes;
bool ginetai(int z,int k,int n,int g);
unsigned int what=0; // pernei times {1,2,3} , 1=sketos, 2=glykos, 3=metrios me gala.
int x=-1; // apothikevei ton arithmo kafedwn (sketwn h glykwn h metriwn me gala) ths prohgoumenhs paraggelias.
public:
kafetiera();