代码搜索:Switch
找到约 10,000 项符合「Switch」的源代码
代码结果 10,000
www.eeworm.com/read/197646/7983402
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/297881/7990187
m metric.m
function distance=metric(x,y)
if x==y
distance=0;
else
distance=1;
end
% switch (y)
% case 0
% if x==0
% distance=0.0458;
% end
% if x==1
% distance=2;
www.eeworm.com/read/398187/8000403
cmd lcd.cmd
-w
-stack 400h
-heap 100
-l rts.lib
MEMORY
{
PAGE 0:
VECT : o=80h,l=80h
PRAM : o=100h,l=1f00h
PAGE 1:
DRAM : o=2000h,l=1000h
}
SECTIONS
{
.text : {}> PRAM
www.eeworm.com/read/398183/8000496
cmd ad.cmd
-w
-stack 400h
-heap 100
-l rts.lib
MEMORY
{
PAGE 0:
VECT : o=80h,l=80h
PRAM : o=100h,l=1f00h
PAGE 1:
DRAM : o=2000h,l=1000h
}
SECTIONS
{
.text : {}> PRAM
www.eeworm.com/read/397995/8011511
plg timeshow.plg
礦ision3 Build Log
Project:
C:\Documents and Settings\Administrator\桌面\时钟显示\timeshow.uv2
Project File Date: 08/10/2008
Output:
Build target 'Ta
www.eeworm.com/read/297493/8013577
c f32x_usb_main.c
//-----------------------------------------------------------------------------
// F32x_USB_Main.c
//-----------------------------------------------------------------------------
// Copyright 2005
www.eeworm.com/read/397828/8019920
c parser.c
#include "global.h"
int lookahead;
parse()
{
lookahead = lexan();
while(lookahead != DONE)
{
expr();
match(';');
}
}
expr()
{
www.eeworm.com/read/197075/8032332
cpp 行编辑程序.cpp
#include"SqStack.h"
#include
void main(){
//利用字符栈S,从终端接受一行经过处理输出。
//约定退格符是#,退行符@。
//例如,输入:whli##ilr#e(s#*s)
// outcha@putchar(*s=#++);
//则实际上应该是下列两行:
//
www.eeworm.com/read/197075/8032468
cpp 表达式求值.cpp
#include "SqStack.h"
//栈的抽象数据类型
int main()
{//简单表达式的求值,这个表达式只有3类字符,即阿拉伯数值,括号,运算符(+,-,*)
SqStack CS; //calculation symbol,运算符栈
SqStack DT; //data,操作数栈
Init