代码搜索结果
找到约 10,000 项符合
Switch 的代码
codetc8.dat
<mark>switch</mark> 语句
功能:<mark>switch</mark>语句是多分支选择语句.用来实现多分支选择结构.if语句只有两个分支可供选择,而实际问题中常常要用到多分支的选择.例如,学生成绩分类(90为"A"等,80-89分为'B'等,70-90分为'C'等......).当然这些都可以用嵌套的if语句来外理,但如果分支较多,则嵌套的if语句层数多,程序沉余长而且可读性降低.C语言提供<mark>switch</mark>语句直接外理多分支 ...
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)
{
fpudispatch.c
/*
* Linux/PA-RISC Project (http://www.parisc-linux.org/)
*
* Floating-point emulation code
* Copyright (C) 2001 Hewlett-Packard (Paul Bame)
*
* This program is free softwa
fpudispatch.c
/*
* Linux/PA-RISC Project (http://www.parisc-linux.org/)
*
* Floating-point emulation code
* Copyright (C) 2001 Hewlett-Packard (Paul Bame)
*
* This program is free softwa
audiochip.h
#ifndef AUDIOCHIP_H
#define AUDIOCHIP_H
/* ---------------------------------------------------------------------- */
#define MIN(a,b) (((a)>(b))?(b):(a))
#define MAX(a,b) (((a)>(b))?(a):(b))
/* v4l
avr.cc
/*
* Simulator of microcontrollers (avr.cc)
*
* Copyright (C) 1999,99 Drotos Daniel, Talker Bt.
*
* To contact author send email to drdani@mazsola.iit.uni-miskolc.hu
*
*/
/* This file is part
d3dmapping.h
#ifndef __D3DMAPPING_H__
#define __D3DMAPPING_H__
#ifndef __D3D8PREREQUISITES_H__
# include "DX8Prerequisites.h"
#endif
#ifndef __VISUALSYSOPTIONS_H__
# include "../../Main/QVisualSysOptions.h
audiochip.h
#ifndef AUDIOCHIP_H
#define AUDIOCHIP_H
/* ---------------------------------------------------------------------- */
#define MIN(a,b) (((a)>(b))?(b):(a))
#define MAX(a,b) (((a)>(b))?(a):(b))
/* v4l
audiochip.h
#ifndef AUDIOCHIP_H
#define AUDIOCHIP_H
/* ---------------------------------------------------------------------- */
#define MIN(a,b) (((a)>(b))?(b):(a))
#define MAX(a,b) (((a)>(b))?(a):(b))
/* v4l
4lut_sanitized.arch
# NB: The timing numbers in this architecture file have been modified
# to comply with our NDA with the foundry providing us with process
# information. The critical path delay output by VPR WILL NO