代码搜索结果

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

algo0912.cpp

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

vowels.c

#include void main(void) { char letter; int vowel_count = 0; for (letter = 'A'; letter

output.m

function y=output(A) [m n]=size(A); A=rref2(A); x=[]; l=rank3(A); if rank3(A)~=rank3(A(1:m,1:(n-1))) disp('no solution'); else i=1; k=1; while i

dipsw.c

#include #include unsigned char dipsw_raw(void) { return cma_mb_reg_read(&((cma_mb_dipsw *)CMA_MB_DIPSW_BASE)->dip_val); } unsigned char dipsw_cooked(void) {

rangeswitc.3

.\" Copyright (c) 1986-1990 Entropic Speech, Inc. .\" Copyright (c) 1991 Entropic Research Laboratory, Inc.; All rights reserved .\" @(#)rangeswitc.3 1.7 07 Aug 1991 ESI/ERL .ds ]W (c) 1991 Entropic R

marg_index.c

/*----------------------------------------------------------------------+ | | | This material contains proprietary software of Entropic Speech, | | Inc. Any reproduction, distribution, or

frngswitch.c

/*---------------------------------------------------------------------------+ This material contains proprietary software of Entropic Speech, Inc. Any reproduction, distribution, or publicatio

pa64-start.h

/* It is currently impossible to switch between PA32 and PA64 based on a runtime compiler switch. So we might as well lose the overhead with checking for TARGET_64BIT. */ #define TARGET_64BIT

wswitch-2.c

/* Further -Wswitch tests. */ /* { dg-do compile } */ /* { dg-options "-Wswitch" } */ enum e { e1 = 0, e2 = 1, e3 = 1, e4 = 2 }; int foo (enum e ei, int j) { switch (ei) { case e1: return

wswitch-1.c

/* PR c/4475, PR c++/3780 */ /* { dg-do compile } */ /* { dg-options "-Wswitch" } */ enum e { e1, e2 }; int foo (int i, int j, enum e ei, enum e ej, enum e ek, enum e el, enum e em, enum e en,