代码搜索结果
找到约 10,000 项符合
Switch 的代码
switch.h
/*
* Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
* All rights reserved.
*
* This software is copyrighted by and is the sole property of
* VIA Networking Technologies, Inc. Thi
switch.c
# include
void main()
{
int num;
/* 下面定义的各变量,分别代表个位,十位,百位,千位,万位,十万位以及位数 */
int indiv, ten, hundred, thousand;
int place;
printf("请输入一个整数(0~9999):");
scanf("%d", &num);
switch.csp
package switch_test;
function main() {
var i = -1,a;
var j;
for(j = 0;j < 10000;j++)
{
switch(j % 4)
{
case 0: a = "zero"; break;
case 1: a = "one"; break;
c
switch.opt
### uVision2 Project, (C) Keil Software
### Do not modify !
cExt (*.c)
aExt (*.a*; *.src)
oExt (*.obj)
lExt (*.lib)
tExt (*.txt)
pExt (*.plm)
CppX (*.cpp)
DaveTm { 0,0,0,0,0,0,0,0 }
switch.c
#include
void Switchdemo(void)
{ Byte outputstate;
switch(outputstate)
{case 1:
P1_0=0;
P1_1=0;
P1_2=0;
break; //跳出循环
case 2:
P1_0=1;
P1_1=0;
P1_2=0;
break;
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.fit
-- MAX+plus II Compiler Fit File
-- Version 10.0 9/14/2000
-- Compiled: 03/16/2004 02:05:16
-- Copyright (C) 1988-2000 Altera Corporation
-- Any megafunction design, and
switch.v
//as switch==1, stop counter
//and then as switch goes from 1 to 0, change the state
module Switch( s_clk, s_sw, s_diswork, s_change );
input s_clk, s_sw;
output s_diswork, s_change;
reg s_d