代码搜索:Switch
找到约 10,000 项符合「Switch」的源代码
代码结果 10,000
www.eeworm.com/read/123847/14610093
c age2.c
/* age2.c: Uses a switch */
#include
int main() {
int age;
char really; // note position
puts("Enter your age:");
scanf("%d", &age);
switch(age/20) {
cas
www.eeworm.com/read/123833/14611567
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/223835/14615955
c snobreak.c
#include
int main (void)
{
int i;
printf("What day is it? ");
scanf("%i", &i);
printf("On the ");
switch (i){
case 1: printf("1st"); break;
case 2: printf("2nd"); break;
case 3
www.eeworm.com/read/223144/14654076
cpp 3_5.cpp
#include
void main()
{
int a;
cout a;
int c1 = a%3 ==0;
int c2 = a%5 ==0;
int c3 = a%7 ==0;
switch((c1
www.eeworm.com/read/122684/14674832
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 stateme
www.eeworm.com/read/122610/14679548
cpp daima.cpp
#include "daima.h"
void CDaima::Gen(enum fct x,int y,int z)
{
if (cx
www.eeworm.com/read/122468/14688171
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/222099/14705226
c c_sub_bitdata.c
//===============================================================================================
// 函数:sub
// 描述:子函数
//===========================================================================
www.eeworm.com/read/222084/14706111
asm cc1.asm
CODE SEGMENT PUBLIC
ASSUME CS:CODE, SS:DATA, DS:DATA
extrn __eq: near
extrn __ne: near
extrn __le: near
extrn __lt: near
extrn __ge: near
extrn __gt: near
extrn __ule: near
extrn __ult: near
www.eeworm.com/read/221571/14737204
c age2.c
/* age2.c: Uses a switch */
#include
int main()
{
int age;
char really; // note position
puts("Enter your age:");
scanf("%d", &age);
switch(age/20)
{