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;
I wanted a liquid layout heading for my webpage. as its a unique image i took a slice from the left edge and added it to a div. then placed the main heading image in another div and floated it to the right. my logic is that it can resize and fill the growing/shrinking white-spaces with the contents of the left div.