代码搜索:Switch
找到约 10,000 项符合「Switch」的源代码
代码结果 10,000
www.eeworm.com/read/242242/13085916
c a2000.c
int *a,t,b,u;
main()
{
int c,l,i,key,j;
loop: l= B_State();
switch (l)
{case 0x01b0:key=time_short();break;
case 0x
www.eeworm.com/read/242170/13090286
m exp2_14.m
clear
clc
close
t=-pi:0.1:pi;
trigname=input('Input trig functions name:')
switch trigname
case 'sin'
plot(t,sin(t))
case 'cos'
plot(t,cos(t))
otherwise
break %终止,跳出switch语句
end
www.eeworm.com/read/327175/13096364
cpp p112.cpp
#include
#include
#include "stack.h"
int isp(char ch){
switch (ch){
case '#': return 0;
case '(': return 1;
case '^': return 7;
case '*':
case '/'
www.eeworm.com/read/327001/13104319
m exp2_14.m
clear
clc
close
t=-pi:0.1:pi;
trigname=input('Input trig functions name:')
switch trigname
case 'sin'
plot(t,sin(t))
case 'cos'
plot(t,cos(t))
otherwise
break %终止,跳出switch语句
end
www.eeworm.com/read/326973/13107538
c algo3-3.c
/* algo3-3.c 括号匹配的检验,(限于()、[]) */
typedef char SElemType;
#include"c1.h"
#include"c3-1.h"
#include"bo3-1.c"
void check()
{ /* 对于输入的任意一个字符串,检验括号是否配对 */
SqStack s;
SElemType ch[80
www.eeworm.com/read/140057/13113206
m ex0507.m
% EX0507 使用switch结构
for month=1:12;
switch month
case{3,4,5}
season='spring'
case{6,7,8}
season='summer'
case{9,10,11}
season='autumn'
therw
www.eeworm.com/read/241807/13115239
m exp2_14.m
clear
clc
close
t=-pi:0.1:pi;
trigname=input('Input trig functions name:')
switch trigname
case 'sin'
plot(t,sin(t))
case 'cos'
plot(t,cos(t))
otherwise
break %终止,跳出switch语句
end
www.eeworm.com/read/241771/13120955
c a.c
/***********************
一元二次方程求根
***********************/
#include "stdio.h"
#include "math.h"
void main()
{
int a,b,c,d,x1,x2;
printf(" 一元二次方程求根\n\n");
printf("请依次输入a,b,c:");
a=