代码搜索结果
找到约 10,000 项符合
Switch 的代码
switch.txt
<mark>SWITCH</mark>语句:
语法:
<mark>SWITCH</mark>(变量名){
CASE 值1:
语句段1
CASE 值2:
语句段2
。。。。
DEFAULT:
语句段N
}
说明:
<mark>SWITCH</mark>分支语句用来实现多支判断,根据变量名指定的变量的变量值和CASE语句后面的值是否
相等来决定是否执行后面的语句,如果都不相等,则执行DEFAULT后面的语句。
注意:
如果变量中 ...
switch.java
package com.javapatterns.command.lightandfan;
public class Switch {
private Command UpCommand, DownCommand;
public Switch( Command Up, Command Down) {
UpCommand =
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
switch.jhd
MODULE switch
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
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
switch.jhd
MODULE switch
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
switch测试.html
New Document - 品络科技 pinluo.com