Hello Iwas just messing around with some stuff I was learning and I have some small code to show I cant actually get this working it used to have lots of errors but I got it down to only one(and I'm pretty proud of that) anyway it's kinda obvious what it does (or what I am making it try to do) if u want to know what I am doing here is trying to manipulate the value of an int using a pointer and then after I get this one done I will be trying the same with a reference to the value or something anyway I'm still learning so plz feel free to help
cheers
stealth
#include <iostream.h>
#include <stdlib.h>
int main()
{
int hit_points = 100;
int *pointer_to_hitpoints = & hit_points;
int damage = 10;
int new_hit_points;
new_hit_points = (pointer_to_hitpoints - damage);
system("pause");
return 0;
}