I have to make a game, where damage is inflicted and subtracted from health after every turn. there is you and the cpu. choices 1 and 2 have limited uses. I cannot figure out how to get the damage to store through out the entire program. here is what i have:

Code:
#include <iostream>
#include <cstdlib>
using namespace std;

int main()
{
	int damage = rand();
	int health = 100;
...