votes
switch statment
how can i write the following if..else statement as a switch statement and write a short programme which takes some input from the user and makes use of the switch statement... if (choice == "a") { Console.WriteLine(&qu ...
blah blah blah is here! blah blah » Close
how can i write the following if..else statement as a switch statement and write a short programme which takes some input from the user and makes use of the switch statement... if (choice == "a") { Console.WriteLine(&qu ...
Hi all! I just started learning this stuff at school, as you might understand im a total noob. I tried for a day, and still can figure it out! This is my code.. ID's and stuff are in Norwegian. knapp = button en, to, tre, fire = one two t ...
if (chk1min.Checked == false && chk2min.Checked == false && chk5min.Checked == false) { MessageBox.Show("PLEASE AT LEAST CHOOSE A TIMING"); } else if (chk1m ...
so honestly, I want to do it this way, but I can't. It says cannot convert 'bool' to 'int'. I'm asking because I do not fully understand what all I can do with a switch statement. I'm getting the drift I'm going to have to use if statements ...
assuming that I have setup the Database (MySQL) Replication using Master-Slave configuration, and have synchronized those Master and Slave servers, how can my C# program know that it has to update the Slave server when the Master server fai ...
I am trying to see if you can nest a switch statement within an if statement. I have searched the web and seems to only be getting results for the opposite. Nesting an If within a switch. Can you tell me if you can nest a switch within an ...
Got feedack? Found a bug? report it here.