Most computer games use formulas to define what happens when a user interacts with the environment. For example, the formula for how much damage a player inflicted on a monster might be something like: damage = (player strength + player weapon) – monster's protection Assume that there are 100 possible values for each of the variables on the right side of this formula (from 0 = weak to 99 = strong). Write a program that: Allows the users to enter their strength, weapon strength, and the monster's protection Finds out what the damage will be on clicking a button Design a complete so
I just need help getting it started in VS 2010 is all
Which code base? VS supports several. With buttons, I am guessing C# or VB.
it is C++
Well, you need to set up some sort of form to get the input, and a few simple calculations to decide what happens, then do some output.
Join our real-time social learning platform and learn together with your friends!