变量类型:byte、short、ushort、int、uint、long、ulong、float、double、decimal、char、bool、string
数组定义:string[] args;
转义字符:\0空格,\b退格,\a警告鸣响,\t水平制表符,\v垂直制表符,其他(\‘,\”,\\)
运 算 符:+,-,*,/,%,-负号,+正号,+=,-=,*=,/=
布 尔 符:==,!=,<,>,>=,<=,!非,&&与,||或,^异或,(&和|,会检查两边,效率不高)
流程控制:
goto (goto start; start: str += ”###”;)
if (if(n==0){str=”step1”;}else if(n<0){str=”step2”;}else{str=”step3”;})
switch (switch(n){case 1:str=”step1”;break;case2:str=”step2”;break;default:str=”step0”;break;})
do (do{n++;}while(n<6))
while (while(n<6){n++;})
for (for(inti=0;i<6;i++){Console.WriteLine(“{0}”,i)})
循环中断:break、continue、 goto、 return
683

被折叠的 条评论
为什么被折叠?



