QUOTE(fyrestorm @ 26 Dec, 2005 - 02:00 AM)
i just took a quick look at your code, and this is what i noticed:
you never call your dice function
and within your dice function lvl is not defined (and it's not passed to the function)...
and your dice function is returning a variable that is never assigned a value...
just a few quick things i saw...nothing too difficult to fix...
Actualy lvl is defined as a global variable.
However you are using totalDice in your main scope without initializing it. Thats gonna cause some problems.
Also at the end instead of having:
CODE
char input;
cin >> input;
//You can do this:
system("PAUSE");
The rest of the problems have been pointed out by
Amadeus and
fyrestormThis post has been edited by Mrafcho001: 26 Dec, 2005 - 10:54 AM