今天又重新翻了翻C# Step by Step
if 语句
if(bool 表达式)
{
语句块;
}
else
{
语句块;
}
switch(day)
{
case 0:
dayName="Sunday";
break;
case 1:
dayName="Monday";
break;
default:
dayName="Unknown";
break;
}
时间: 2024-09-29 17:06:13
今天又重新翻了翻C# Step by Step
if 语句
if(bool 表达式)
{
语句块;
}
else
{
语句块;
}
switch(day)
{
case 0:
dayName="Sunday";
break;
case 1:
dayName="Monday";
break;
default:
dayName="Unknown";
break;
}