Search results for query: *

  • Users: Nas
  • Order by date
  1. N

    Question Custom Exceptions

    I guess you are right, I will redo and start from the basics... Thanks for the tips.
  2. N

    Question Custom Exceptions

    I can't get my code (below) to execute the exceptions! 1- First, the bank account is empty. 2- 1500 deposit is made 3- Attempt to withdraw 1050 but the overdraft limit is 1000 4- Since the the amount to withdraw is greater than the overdraft limit the OverdraftEx exception should display my...
  3. N

    Simple IF Statement instead of Array for rolling 3 dice by two players

    Hello, I have this code written using Arrays for two players rolling 3 dice each and then state who got the highest score (the score is not adding the 3 numbers for each player but putting the numbers beside each other and reading it as a 3 digits integer, for example if player 1 rolls 3, 2 and...
  4. N

    Question error: System.FormatException: 'Input string was not in a correct format

    I understand, thanks, the problem is that I am getting an error in the IF Statement saying that "Error CS0029 Cannot implicitly convert type 'string' to 'int'. Player1_Result.Text = string.Format("Player 1: {0}{1}{2}", Dice1_input_Player1.Text, Dice2_input_Player1.Text...
  5. N

    Question error: System.FormatException: 'Input string was not in a correct format

    I am getting a error when trying to create a Form that will randomly display 3 values of 3 Dice for 2 players and will compare the numbers and displays who won. The is running great but it started show me an error after I put the IF statement. The code runs but it returns the error when I click...
Back
Top Bottom