代码搜索:Switch
找到约 10,000 项符合「Switch」的源代码
代码结果 10,000
www.eeworm.com/read/155858/11843237
cpp 4elist0716.cpp
//Listing 7.16
// Demonstrates switch statement
#include
int main()
{
using namespace std;
unsigned short int number;
cout > numb
www.eeworm.com/read/344861/11856070
c psdemo.c
/*
** $Id: psdemo.c,v 1.9 2007-08-30 02:02:03 xwyan Exp $
**
** psdemo.c: The PropertySheet demo program.
**
** Copyright (C) 2001 ~ 2002 Wei Yongming.
** Copyright (C) 2003 ~ 2007 Feynman Software.
*
www.eeworm.com/read/344814/11857747
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/258461/11861566
c xpy.c
#include "xpy.h"
#include
void InputIO(uchar c,uchar index)
{
switch(c)
{
case 'A':
TRISA |= index;
break;
case 'B':
TRISB |= index;
break;
case 'C':
T
www.eeworm.com/read/155539/11864669
cpp zp2155.cpp
//---------------------------------------------------------------------------
#pragma hdrstop
//---------------------------------------------------------------------------
#pragma argsused
#
www.eeworm.com/read/258337/11869414
cpp kintegerline.cpp
/**********************************************************************
**
** $Id: kintegerline.cpp,v 1.1 2003/09/08 19:42:09 jasonk Exp $
**
** Implementation of
**
** Copyright (C) 1997 Michael Wie
www.eeworm.com/read/258191/11878655
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 statement
#
www.eeworm.com/read/344239/11894990
java vowelsandconsonants.java
//: control/VowelsAndConsonants.java
// Demonstrates the switch statement.
import java.util.*;
import static net.mindview.util.Print.*;
public class VowelsAndConsonants {
public static void m
www.eeworm.com/read/257980/11897979
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/257836/11910879
cpp main.cpp
#include "disk.h"
#include
#include
void main()
{
char c;
Cdisk D;//声明管理员类的对象;
int i=1,n,flag=1;
cout