代码搜索结果
找到约 10,000 项符合
Switch 的代码
rngswitch.c
/*
This material contains proprietary software of Entropic Speech, Inc.
Any reproduction, distribution, or publication without the prior
written permission of Entropic Speech, Inc. is st
test.c
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of
930527-1.c
enum {e0, e1};
int x[] =
{
[e0] = 0
};
f ()
{
switch (1)
{
case e0:
case e1:
break;
}
}
20010610-1.c
/* Origin: Kaveh R. Ghazi
Boolean types were not accepted as array sizes nor as switch
quantities. */
#include
int
main(void)
{
bool arr[(bool)1];
stmt-expr-label-2.c
/* Test for labels in statement expressions: bugs 772 and 17913.
switch statements must not jump into statement expressions. */
/* Origin: Joseph Myers */
/* { dg-do com
wswitch-enum.c
/* PR c/5044 */
/* { dg-do compile } */
/* { dg-options "-Wswitch-enum" } */
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, enum e e
skgedrv.h
/******************************************************************************
*
* Name: skgedrv.h
* Project: GEnesis, PCI Gigabit Ethernet Adapter
* Version: $Revision: 1.4 $
* Date: $Date: 199
ex_3_2_6.java
/*
*文件名 ex_3_2_6.java
*说 明:演示多路分支语句switch的用法
* 学生成绩评价的生成
*/
class ex_3_2_6
{
public static void main(String args[])
{
int score=80; // 成绩
String remark; // 成绩评价
switch(sc
abstract.txt
This example program shows how to use RTX51 Tiny in Code Banking
Applications. The system contains 4 tasks and is very similar
to the RTX51 Tiny Example EX2.
However, the system avoids Round-R
ch5_7.c
/*ch5_7*/
#include
main()
{
long profit;
int grade;
float salary=500;
printf("Input profit: ");
scanf("%ld", &profit);
grade= (profit - 1) / 1000;