代码搜索结果
找到约 10,000 项符合
Switch 的代码
switch.java
//: exceptions/Switch.java
import static net.mindview.util.Print.*;
public class Switch {
private boolean state = false;
public boolean read() { return state; }
public void on() { state =
switch.c
# include
void main()
{
int num;
/* 下面定义的各变量,分别代表个位,十位,百位,千位,万位,十万位以及位数 */
int indiv, ten, hundred, thousand;
int ten_thousand, hundred_thousand, place;
printf("请输入一个整数(0~99
switch.cpp
// switch box routing
#include
#include "stack.h"
bool CheckBox(int net[], int n)
{// Determine whether the switch box is routable.
Stack *s = new Stack (n);
/
switch.cpp
// switch.cpp -- use the switch statement
#include
using namespace std;
void showmenu(); // function prototypes
void report();
void comfort();
int main()
{
showmenu();
in
switch.test
# Commands covered: switch
#
# This file contains a collection of tests for one or more of the Tcl
# built-in commands. Sourcing this file into Tcl runs the tests and
# generates output for errors.
switch.n
'\"
'\" Copyright (c) 1993 The Regents of the University of California.
'\" Copyright (c) 1994-1997 Sun Microsystems, Inc.
'\"
'\" See the file "license.terms" for information on usage and redistribut
switch.cpp
//这个程序在本书所带软盘中,文件名为SWITCH.CPP
//这个程序演示开关语句的工作。
#include
void main(void)
{
int choice;
cout > choice;
switch (choice) {
case 1 : {
cout
switch.c
# include
void main()
{
int num;
/* 下面定义的各变量,分别代表个位,十位,百位,千位,万位,十万位以及位数 */
int indiv, ten, hundred, thousand;
int ten_thousand, hundred_thousand, place;
printf("请输入一个整数(0~99