Posts by sadpoints • 73 points
4 posts
-
0
votes1
answer27
viewsQ: Typing error when receiving foreign key from the database
Good evening, basically this is a list I did to show the data that were entered in the database, but I have been finding typing problems on lines 1 and 2 (marked as comment), as predicted, the…
-
3
votes1
answer42
viewsA: Random on the switch statement, why doesn’t it work?
The error was not having introduced the "system" to randomize within the loop. The solution to the problem is to implement Gamble = Console.Readline(); and the variable int Luck = Rnd.Next(1,3);…
-
1
votes1
answer42
viewsQ: Random on the switch statement, why doesn’t it work?
Following the code below, my intention was to randomize the switch to choose between case 1 and 2, after receiving the word "Gamble". It turns out that when I write Gamble, only case 1 is activated…
-
3
votes2
answers143
viewsQ: Error #CS0176 in if statement, what am I doing wrong?
Why am I getting error #CS0176 when I call variable madeiras in (gamble.Equals("gamble {0}", madeiras))? From what I understand is because my method is static, and I need to put the name of your…