Can someone please help

Here maybe this will help if we can fill it in please I would be greatly appreciated.

Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    End Sub

    Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click

    End Sub

    Private Sub Label2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label2.Click

    End Sub

    Private Sub Label3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label3.Click

    End Sub

    Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged

    End Sub

    Private Sub TextBox3_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox3.TextChanged

    End Sub

    Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged

    End Sub
End Class



Here is how it is supposed to work
Last edited on
std::cin , std::cout , operator + , operator - , operator =
But where in the program will that go and how does it appear?
@___@. don't really understand what you mean

but I think in game main loop,

something like :
1
2
3
4
5
6
7
8
9
10

while( gameIsRunning ){
// user input
cin >> player_strength >> player_weapon >> monster_protection;

// the game logic ?
damage = player_strength + player_weapon - monster_protection; 

}


Maybe ?
Let's see. If I understand this task, it is a very simple program.
First you should enter the player strength, weapon strength and the monster protection. Then you just need a variable that calculates the damage:
int damage = (player_strength + player_weapon) – monster_protection;

Try this and if you still find difficulties with the code tell us where you have problems and we will help.
The problem I am having is where in the code to place what you are telling me I know it has to be a Form1.VB file to start the program but I need some help in explaining where things go in the program I am class and with no explanation as how to start the program out they expect us to know how to do this. I know it is going to have Switch statements in it.
1
2
3
4
int main()
{
    //code
}
Here maybe this will help if we can fill it in please I would be greatly appreciated.

Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    End Sub

    Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click

    End Sub

    Private Sub Label2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label2.Click

    End Sub

    Private Sub Label3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label3.Click

    End Sub

    Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged

    End Sub

    Private Sub TextBox3_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox3.TextChanged

    End Sub

    Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged

    End Sub
End Class

Here is how it is supposed to work C:\Users\tearz\Pictures\School Projects
Last edited on
Topic archived. No new replies allowed.