i have the code
Code:
cPlayer MyPlayer;
cout<<"Dagger Skill: %d"<<MyPlayer.GetValue( Dagger );
cin.ignore();
MyPlayer.SetValue(Dagger, 50);
cout<<"Dagger Skill: %d"<<MyPlayer.GetValue( Dagger );
and i get 3 parse errors and i think it has to do with the ( Dagger )
part of the program, this is my attempt at making this
Code:
cPlayer MyPlayer;
printf("Dagger Skill: %d", MyPlayer.GetValue(DAGGER_SKILL));
printf("\n"); //Prints a New Line
MyPlayer.SetValue(DAGGER_SKILL, 50);
printf("Dagger Skill: %d", MyPlayer.GetValue(DAGGER_SKILL));
into c++ (i have no knowlege of c)