代码搜索:SWITCH
找到约 10,000 项符合「SWITCH」的源代码
代码结果 10,000
www.eeworm.com/read/437964/7738779
png switch.png
www.eeworm.com/read/351179/7808788
txt switch.txt
<mark>SWITCH</mark>语句:
语法:
<mark>SWITCH</mark>(变量名){
CASE 值1:
语句段1
CASE 值2:
语句段2
。。。。
DEFAULT:
语句段N
}
说明:
<mark>SWITCH</mark>分支语句用来实现多支判断,根据变量名指定的变量的变量值和CASE语句后面的值是否
相等来决定是否执行后面的语句,如果都不相等,则执行DEFAULT后面的语句。
注意:
如果变量中 ...
www.eeworm.com/read/299153/7884553
java switch.java
package com.javapatterns.command.lightandfan;
public class Switch {
private Command UpCommand, DownCommand;
public Switch( Command Up, Command Down) {
UpCommand =
www.eeworm.com/read/434038/7895127
cpp switch.cpp
//
// This file is part of an OMNeT++/OMNEST simulation example.
//
// Copyright (C) 1992-2005 Andras Varga
//
// This file is distributed WITHOUT ANY WARRANTY. See the file
// `license' for det
www.eeworm.com/read/398865/7913863
vhd switch.vhd
-- 库声明
library IEEE;
use IEEE.STD_LOGIC_1164.all;
-- 实体声明
entity switch is
port (
din1 : in STD_LOGIC;
din2 : in STD_LOGIC;
sel : in STD_LOGIC;
dout : out STD_LO
www.eeworm.com/read/198623/7920882
s switch.s
/ switch -- switch on contents of r0
/
/
/ calling sequence --
/
/ jsr r5,switch; swtab
/
/ r0 is looked up in swtab and if found
/ control is returned to the corresponding place
/ if r0 is not foun
www.eeworm.com/read/198233/7946624
vhd switch.vhd
-- 库声明
library IEEE;
use IEEE.STD_LOGIC_1164.all;
-- 实体声明
entity switch is
port (
din1 : in STD_LOGIC;
din2 : in STD_LOGIC;
sel : in STD_LOGIC;
dout : out STD_LO