第四课

1,清空缓冲区的方法【1,fflush(stdin); 2,setbuf(stdin,NULL);]

2,下拉快捷键:【Alt+选中的区域】

3,if选择结构

#include<stdio.h>
int main()
{
   if(表达式)
   {
      执行语句;
      ...
   }
   else
   {
      执行语句;
      ...
   }
   return 0;
}

4,switch选择结构

#include<stdio.h>
int main()
{
   switch(表达式)
   {
      case 常量表达式:
           break;//如果没有break,遇到满足条件的case语句后,就会执行后面的所有语句
      case 常量表达式:
      ...
      default:
      break;
   }
   return 0;
}