代码搜索:Switch
找到约 10,000 项符合「Switch」的源代码
代码结果 10,000
www.eeworm.com/read/355484/10262196
m mud.m
function [ich10,qch10]=mud(ich9,qch9,MUDmode,attn,A,code)
switch MUDmode
case 1
ich10 = ich9;
qch10 = qch9;
case 2
R=(code*code')/7;
ich10 = inv(R)*ich9;
www.eeworm.com/read/355116/10291726
c testpower.c
#include "TestInc.h"
NTSTATUS TestPowerIrp(IN PDEVICE_OBJECT fdo,IN PIRP Irp)
{
NTSTATUS ntStatus;
PIO_STACK_LOCATION IrpStack, NextStack;
PDEVICE_EXTENSION pdx;
pdx = fdo->DeviceE
www.eeworm.com/read/355101/10294570
m mark..m
% 函数文件mark,分数归类
% x为输入的学生分数
% 分数共分为5档,分别为grade1~4以及不及格
% 07年上半学期期末考试
% fix函数为取整函数
function mark
x=input('enter the mark:'); % x为一标量
switch fix(x/10)
case {9,10}
disp('grade
www.eeworm.com/read/425971/10299874
cpp algo3-3.cpp
// algo3-3.cpp 括号匹配的检验,(限于()、[])
typedef char SElemType;
#include"c1.h"
#include"c3-1.h"
#include"bo3-1.cpp"
void check()
{ // 对于输入的任意一个字符串,检验括号是否配对
SqStack s;
SElemType ch[80],
www.eeworm.com/read/425971/10299901
cpp algo3-7.cpp
// algo3-7.cpp 表达式求值(范围为int类型,输入负数要用(0-正数)表示)
typedef int SElemType; // 栈元素类型为整型,改进算法3.4
#include"c1.h"
#include"c3-1.h"
#include"bo3-1.cpp"
SElemType Precede(SElemType t1,SElemType t2) /
www.eeworm.com/read/425971/10299941
cpp algo3-6.cpp
// algo3-6.cpp 表达式求值(输入、输出和中间结果均只能是0~9)
typedef char SElemType;
#include"c1.h"
#include"c3-1.h"
#include"bo3-1.cpp"
SElemType Precede(SElemType t1,SElemType t2)
{ // 根据教科书表3.1,判断两符号的优先关
www.eeworm.com/read/355030/10300364
cpp menu2.cpp
//: C03:Menu2.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 1999
// Copyright notice in Copyright.txt
// A menu using a switch statement
#
www.eeworm.com/read/425971/10300569
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/162323/10314230
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