代码搜索:Switch
找到约 10,000 项符合「Switch」的源代码
代码结果 10,000
www.eeworm.com/read/133648/14031388
java vowelsandconsonants.java
//: c03:VowelsAndConsonants.java
// From 'Thinking in Java, 2nd ed.' by Bruce Eckel
// www.BruceEckel.com. See copyright notice in CopyRight.txt.
// Demonstrates the switch statement.
public cla
www.eeworm.com/read/133469/14042305
m p47-2.m
t=-pi:0.1:pi;
trigname=input('Input trig function name:');
switch trigname
case 'sin'
plot(t,sin(t))
case 'cos'
plot(t,cos(t))
case 'tan'
plot(t,tan(t))
otherwis
www.eeworm.com/read/235539/14064803
cpp func3-2.cpp
// func3-2.cpp algo3-6.cpp和algo3-7.cpp要调用的函数
char Precede(SElemType t1,SElemType t2)
{ // 根据教科书表3.1,判断t1,t2两符号的优先关系('#'用'\n'代替)
char f;
switch(t2)
{
case '+':
case '-':if(
www.eeworm.com/read/235456/14071495
c inputnumber.c
//*************************************************************************************************
//* *
//* ******************************数字处理程序************************
www.eeworm.com/read/235248/14080006
txt cmd-help.txt
UnderC Command-line Options (available with --help)
ucc { }
Defaults to interactive mode if there's no source file specified;
reads C++ definitions from defs.h, looking
www.eeworm.com/read/204535/15337302
cpp compute.cpp
#define STACK_SIZE 100
#define STACKINCREMENT 10
#include"stdlib.h"
#include"stdio.h"
typedef struct
{
char *base;
char *top;
int stacksize;
}Stack1;
int InitStac
www.eeworm.com/read/204469/15338986
cpp page112.cpp
#include
#include
#include
int isp(char ch){
switch (ch){
case '#': return 0;
case '(': return 1;
case '^': return 7;
case '*':
case '/'
www.eeworm.com/read/204401/15340172
h test.h
class test
{
private:
int number;
public:
float socre;
int pp;
public:
int rp();
void rt(int a)
{
switch(a)
{
case 1:
break;
default:
break;
www.eeworm.com/read/204090/15344710
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/203890/15349768
m subsref.m
function B=subsref(A,S)
% $Id: subsref.m 119 2006-09-26 12:28:25Z mairas $
% if frequency is a vector, fix it
% what is this needed for - can't ever happen!
%if length(A.vec)
% A = frequency(A.vec)