T
Tim Mierzejewski
You guys were so great with answering my first question that I've decided to
ask you yet again! Again, only the relevant code is included.
typedef unsigned int unint;
#include <iostream>
class Creature
{
public:
unint ReturnSpellPoints() {return crSpellPoints;}
void SetSpellPoints(int points) {crSpellPoints = points;}
private:
unint crSpellPoints;
};
int main()
{
Creature *Play1 = new Creature;
Play1->SetSpellPoints(10);
if (Play1->ReturnSpellPoints > 0) //Line 17
std::cout << "Select an action:\n";
return 0;
}
ask you yet again! Again, only the relevant code is included.
typedef unsigned int unint;
#include <iostream>
class Creature
{
public:
unint ReturnSpellPoints() {return crSpellPoints;}
void SetSpellPoints(int points) {crSpellPoints = points;}
private:
unint crSpellPoints;
};
int main()
{
Creature *Play1 = new Creature;
Play1->SetSpellPoints(10);
if (Play1->ReturnSpellPoints > 0) //Line 17
std::cout << "Select an action:\n";
return 0;
}