代码搜索结果
找到约 10,000 项符合
Switch 的代码
switch.c
# include
void main()
{
int num;
/* 下面定义的各变量,分别代表个位,十位,百位,千位,万位,十万位以及位数 */
int indiv, ten, hundred, thousand;
int ten_thousand, hundred_thousand, place;
printf("请输入一个整数(0~99
switch.c
/*
* switch.c: implement 'switch' feature via WC & RA interfaces.
*
* ====================================================================
* Copyright (c) 2000-2006 CollabNet. All rights reserve
switch.c
/*
* switch.c: implement 'switch' feature via WC & RA interfaces.
*
* ====================================================================
* Copyright (c) 2000-2006 CollabNet. All rights reserve
switch.nc
/* tab:4
* "Copyright (c) 2000-2003 The Regents of the University of California.
* All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* docu
switch.ref
File version: 6
File size: 130
Frame size: (0,6400)x(0,4800)
Frame rate: 12.000000 / sec.
Total frames: 1
Offset: 20 (0x0014)
Block type: 12 (SWF_DOACTION)
Block length: 100
24 Actions
26:SWFAC
switch.asm
INCLUDE REGS386.INC
INCLUDE TRANS.INC
.386p
DGROUP group _DATA
_DATA segment word public 'DATA' use16
extrn _cs16real: word
extrn _ds16real: word
trs TRANS ; translation
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.py
# Show how to do switchable panels.
from Tkinter import *
class App:
def __init__(self, top=None, master=None):
if top is None:
if master is None:
top = Tk()