代码搜索:Switch
找到约 10,000 项符合「Switch」的源代码
代码结果 10,000
www.eeworm.com/read/153151/5653106
java testcommand.java
package com.javapatterns.command.lightandfan;
public class TestCommand
{
public static void main(String[] args)
{
Light testLight = new Light( );
LightOnCommand testLOC =
www.eeworm.com/read/152843/5659235
s switchto.s
/*
* arch/sh64/kernel/switchto.S
*
* sh64 context switch
*
* Copyright (C) 2004 Richard Curnow
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See t
www.eeworm.com/read/475889/6768320
c input.c
#include
unsigned char code tab[4][4]={{'1','4','7','#'},
{'2','5','8','0'},
{'3','6','9','*'},
{'A','B','C','D'}}; //
www.eeworm.com/read/476058/6773074
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/174065/6783374
c ch5_5.c
/*ch5_5*/
/*从键盘上输入一个百分制成绩score,按下列原则输出其等级:*/
/*score≥ 90,等级为A;80≤ score
www.eeworm.com/read/174065/6783618
c ch17-16.c
#include
main()
{
int year,month,days;
printf("Enter year and month: ");
scanf("%d%d",&year,&month);
switch(month)
{
case 1:
case 3:
case 5:
www.eeworm.com/read/174065/6783621
c ch17-17.c
#include
#include
void main()
{
float num1,num2;
char s;
clrscr();
printf("Enter a statement please:");
scanf("%f%c%f",&num1,&s,&num2);
switch(s
www.eeworm.com/read/475551/6791166
js number.js
// JavaScript Document
function checkcar()
{
var omit=form10.country.value;
var city=form10.city.value;
switch (omit)
{
case "京":
form10.answer.value="北京";
break;
www.eeworm.com/read/475551/6791263
js number.js
// JavaScript Document
function checkcar()
{
var omit=form10.country.value;
var city=form10.city.value;
switch (omit)
{
case "京":
form10.answer.value="北京";
break;
www.eeworm.com/read/475207/6794079
asv gnalgo.asv
function ret=gnalgo()
clc;
clear all ;
load imdb.dat;
lim=500;
disp('Generating initial population...');
pop = initpop();
%pop = floor(6*rand(9,20);
newpop=zeros(27,20);
for gen=1:lim
f=