用C语言编写简易计算器程序
用C语言编写简易计算器程序
日期:2016-03-30 06:28:33 人气:2
#include
#include
int main()
{
char ch,op;
double a,b,c;
printf("请按s键开始计算,按q退出程序:\n");
while(1)
{
while(scanf("%c",&ch),ch!='q')
{
if(ch!='s')
break;