代码搜索:Switch
找到约 10,000 项符合「Switch」的源代码
代码结果 10,000
www.eeworm.com/read/261326/11654321
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/347458/11664414
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/347144/11688766
c pwm.c
/*
\\\|///
\\ - - //
( @ @ )
+---------------------oOOo-(_)-oOOo-------------------------+
| 智林STM32开
www.eeworm.com/read/260856/11692474
java switchdemo.java
//Switch结构示例
public class SwitchDemo
{
public static void main (String[ ] arguments)
{
float x=9;
float y=5;
int z=(int) (x/y);
switch (z)
{
case 1:
x = x + 2;
www.eeworm.com/read/260726/11705565
sdi spist.sdi
,,,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
,,,;
,,,; SPIST.ASM MPB Ver:1.0 14-9-05
,,,;.............................................................
www.eeworm.com/read/346818/11719705
c evm5509_dip.c
/*
* Copyright 2002 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* ======== evm5509_dip.c ========
* DIP switch module fo
www.eeworm.com/read/157219/11729443
cpp 5_11.cpp
#include
main()
{
int year,month,days;
printf("Please input year,month:");
scanf("%d,%d",&year,&month);
switch(month)
{
case 1:
case 3:
www.eeworm.com/read/346459/11743044
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)
www.eeworm.com/read/346459/11743074
m subsref.m
function B=subsref(A,S)
% $Id: subsref.m 31 2004-07-28 10:46:46Z mairas $
switch S(1).type
case '.'
switch S(1).subs
case 'f'
if length(S)>1
B=subsref(A.frequency.f,S(2