代码搜索结果

找到约 10,000 项符合 Switch 的代码

计算平均成绩(小数).cpp

/* 在考生目录的Paper子目录下,有Modify.c文件,该文件中"____ N ____"是根据程序功能需要填充部分, * 请完成程序填充(注意:不得加行、减行、加句、减句,否则后果自负)。 * 该程序功能: * 将输入的十进制整数n通过函数DtoH转换为十六进制数,并将转换结果以字符串形式输出。 * 例如:输入十进制数79,将输出十六进制4f。 */ # incl ...

algo0912.cpp

void LeftBalance(BSTree &T) { // 算法 9.12 // 对以指针T所指结点为根的二叉树作左平衡旋转处理。 // 本算法结束时,指针T指向新的根结点 BSTree lc,rd; lc = T->lchild; // lc指向*T的左子树根结点 switch (lc->bf) { // 检查*T的左子树的平衡度,并作相应平衡处理

smallprocess.c

//************************************************************************************************* //* * //* ******************************小写字母处理函数**********************

capprocess.c

//************************************************************************************************* //* * //* ******************************大写字母处理函数**********************

习题-38.c

//本程序只给出了算法思想 //读者可以自己完善本程序 typedef enum {RED,WHITE,BLUE} color; //三种颜色 void Flag_Arrange(color a[ ],int n) //把由三种颜色组成的序列重排为按照红,白,蓝的顺序排列 { i=0;j=0;k=n-1; while(j

dflipflop.vhd

--d flipflop library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; --din is switch i/p --dout and ndout are o/ps routed to o/p leds --row i

dflipflop.vhd

--d flipflop library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; --din is switch i/p --dout and ndout are o/ps routed to o/p leds --row i

listing16-07_fastswitch.java

// Listing 16-7. Accelerating the switch Statement public char slowSwitch( int keyEvent ) { switch ( keyEvent ) { case Canvas.KEY_NUM6: return '6'; case Canvas.KEY_NUM3: return '3'; case C

sw.h

#ifndef _SW_H #define _SW_H #include "sfr62p.h" // SFR definition of M16C/62P void InitSW(void); // initialize switch unsigned char GetSW(void); // get state of switch #endif

interrupt_sw.c

#include "interrupt_sw.h" // interrupt switch utility header file #include "sfr62p.h" // SFR definition of M16C/62P #define TRUE 1 #define FALSE 0 /*""FUNC COMMENT""*********************************