Despite the Dr. in my username, I've never gone to or been around a surgery. Although if you need one we can work something out!
*twenty minutes later* All done!
"Um, that wasn't surgery. You just put me in a medical gown and said all done,"
Are you complaining?
"...I guess not?"
Have you ever gone travelling?
a lil bit,
Its probably mixed in with all the other languages I know the basics of
A menu system!
int choice=0;
start: //loop startpoint
//main menu
Console.WriteLine("Please select an option from the menu:");
Console.WriteLine("1] Say Hello World");
Console.WriteLine("2] Say Pi to 13 decimal places");
Console.WriteLine("3] Say something else");
Console.WriteLine("4] Quit the program");
choice = int.Parse(Console.ReadLine());
//switch for the choice from the main menu
switch (choice)
{
//----------//
// OPTION 1 //
//----------//
case 1:
Console.WriteLine("Hello world!");
System.Threading.Thread.Sleep(new TimeSpan(0, 0, 3));
Console.Clear(); // clear the console to make it look neat
goto start; // go back to the main menu
//----------//
// OPTION 2 //
//----------//
case 2:
Console.WriteLine("3.14159265358979"); //error 3 states that the queue is empty
System.Threading.Thread.Sleep(new TimeSpan(0, 0, 3));
Console.Clear(); // clear the console to make it look neat
goto start; // go back to the main menu
//----------//
// OPTION 3 //
//----------//
case 3:
Console.WriteLine("Something else!");
System.Threading.Thread.Sleep(new TimeSpan(0, 0, 3));
Console.Clear(); // clear the console to make it look neat
goto start; // go back to the main menu
//----------//
// OPTION 4 //
//----------//
case 4:
//file.Close(); //close the log file
Environment.Exit(0); //exits the program
break;
//-------//
// Error //
//-------//
default:
Console.WriteLine("Error!");
Console.WriteLine("Please enter either 1, 2, 3, or 4");
System.Threading.Thread.Sleep(new TimeSpan(0, 0, 3));
Console.Clear(); // clear the console to make it look neat
goto start; // go back to the main menu
}
}
}
Do you study computing?