- Code: Select all
class CountMachine {
public:
CountMachine() {
int counter = 2;
}
void CountUp() {
counter++;
}
};
To which the TA replied, "I'm afraid that's out of the scope of this class."
Also, issues with steam thingie.
class CountMachine {
public:
CountMachine() {
int counter = 2;
}
void CountUp() {
counter++;
}
};
Big Bear wrote:Could someone make the point of this joke public please
class CountMachine {
public:
CountMachine() {
counter = 2;
}
void CountUp() {
counter++;
}
private:
int counter;
};
Big Bear wrote:I know, that's why I used to term public
Anyway, I've done a couple semesters of Java but I stopped at data structures
Users browsing this forum: No registered users and 1 guest