// 0402_2.cpp : 定義主控台應用程式的進入點。 // #include "stdafx.h" #include "stdio.h" #include "conio.h" #include "stdlib.h" int _tmain(int argc, _TCHAR* argv[]) { char sel; float a,b; for(;;) { printf("請選擇::"); sel=getch(); switch (sel) { case '1': break; case '2': break; case '3': break; case '4': break; case '5': break; default: break; } } }