its logical that you have to pass something to liv(), since you ask for ONE parameter. This would not compile in C either
i think this:
Code:
stats_sum = styrke + intelligens + liv.liv()/10;
should be:
Code:
stats_sum = styrke + intelligens + liv.liv/10;
since you want to know the liv as variable, not the function. I dont see any input so i guess you want the liv number... If you want to use the function you should probably do:
Code:
stats_sum = styrke + intelligens + liv.liv(0)/10;
which does the same as the previous line i gave, since it just returns 'liv' as variable.