If else
Switch
While
For
Break
Continue
Radiobutton processing code
if(rbt_true.Checked){ MessageBox.Show("yes");}else{ MessageBox.Show("no");}
Set the length, width, and title of the console application
And use for to display the time (after each display time, stop for one second, clear the information after running, and perform the next loop again)
class Program { static void Main(string[] args) { System.Console.Title = "wow so doge"; System.Console.WindowHeight = 2; System.Console.WindowWidth =30; for (; ; ) { System.Console.WriteLine("time:{0}",System.DateTime.Now.ToString("hh:mm:sss")); System.Threading.Thread.Sleep(1000); System.Console.Clear(); } }
String STR = "1 ";
STR + = string. Format ("+ {0} + {1}", I, I/J)
Replace each format item in the specified string with the text equivalent of the value of the corresponding object.