代码搜索结果
找到约 10,000 项符合
Switch 的代码
switch.t
#!./perl
# $Header: switch.t,v 4.0 91/03/20 01:49:44 lwall Locked $
print "1..18\n";
sub foo1 {
$_ = shift(@_);
$a = 0;
until ($a++) {
next if $_ eq 1;
next if $_ eq 2;
next if $_ eq
switch.java
/*---------------------------------------------------------------------------
* Copyright (C) 1999-2001 Dallas Semiconductor Corporation, All Rights Reserved.
*
* Permission is hereby granted, fre
switch.c
# include
void main()
{
int num;
/* 下面定义的各变量,分别代表个位,十位,百位,千位,万位,十万位以及位数 */
int indiv, ten, hundred, thousand;
int ten_thousand, hundred_thousand, place;
printf("请输入一个整数(0~99
switch.c
/* Test the types of switch statement.
type: char, int, long
sign: signed, unsigned
storage: static,
attr: volatile
*/
#include
{sign} {type}
sparseSwitch({sign} {type
switch.c
char x;
/* Valid switch statement */
#ifdef TEST1
char foo(void)
{
switch(x)
{
char y;
case 0:
return 0;
case 1:
return 1;
default:
y = x
switch.java
package com.javapatterns.command.lightandfan;
public class Switch {
private Command UpCommand, DownCommand;
public Switch( Command Up, Command Down) {
UpCommand =
switch.java
package com.javapatterns.command.lightandfan;
public class Switch
{
private Command upCommand;
private Command downCommand;
public Switch(Command up, Command down)
{
switch.c
/* Copyright (C) 1991, 1992, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under th
switch.inc
;***
; SWITCH.INC - 01-Oct-87 - BASCOM compiler and runtime common switch file
;***
.XLIST
;***
;
; Copyright 1987, Microsoft Corporation
;
;Purpose:
;
;********************************