So, I think you have to learn much more about class.
You can use variables and functions in class. I saw you used almost function instead of variables(Don't sure if you intended to do it).
And for the error,
1 2 3 4 5 6 7 8 9 10 11 12
class character
{
public:
stats characterStats;
characterStats.Str();
characterStats.Dex();
characterStats.Con();
characterStats.Int();
characterStats.Wis();
characterStats.Cha();
};
You can't call function in class structure...
How can I explain it... Just like,
1 2 3 4
printf("Hi"); // error
int main(){
...
}
So, if you want to call function, call it using function.
Maybe,
1 2 3 4 5 6 7 8 9 10 11 12 13
class character
{
public:
stats characterStats;
character(){
characterStats.Str();
characterStats.Dex();
characterStats.Con();
characterStats.Int();
characterStats.Wis();
characterStats.Cha();
} // We call this a constructor
};
or
1 2 3 4 5 6 7 8 9 10 11 12 13
class character
{
public:
stats characterStats;
void func_name(){
characterStats.Str();
characterStats.Dex();
characterStats.Con();
characterStats.Int();
characterStats.Wis();
characterStats.Cha();
} // And use this function in main
};
And also, in main. character; should be character object_name;