代码搜索结果
找到约 21,386 项符合
Switch 的代码
时间.txt
var curr=new Date();
switch(curr.getDay())
{
case 0:document.writeln("1");break;
case 1:document.writeln("2");break;
case 2:document.writeln
stv44c427af00df.txt
Switch terminal echo on/off
lc-switch.h
/*
* Copyright (c) 2004-2005, Swedish Institute of Computer Science.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitt
varinit2.java
public class VarInit2
{
static final int BASE_INT = 10;
public static void a(int b)
{
switch (b)
{
case VarInit.c:
default:
break;
}
}
}
switch.c
main()
{
int i; char *s;
for (s = "bfnrtvx"; *s; s++)
printf("%c = 0x%x\n", *s, backslash(*s));
f();
g();
h();
for (i = 0x1000000; i&0x7000000; i += 0x1000000)
big(i);
limit();
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-default-2.c
// PR C++/21123
/* { dg-do compile } */
/* { dg-options "-Wswitch-default" } */
template
void foo( )
{
int i = 0;
switch ( i ) /* { dg-warning "switch missing default cas
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-default-1.c
// PR C++/21123
/* { dg-do compile } */
/* { dg-options "-Wswitch-default" } */
template
void foo( )
{
int i = 0;
switch ( i ) /* { dg-bogus "switch missing default case"
case-range1.c
// { dg-do compile }
// Tests if case ranges (a GNU extension) are accepted
// { dg-options "" }
const int low = -2;
const int high = 15;
template
T f2 (T i)
{
switch (i)
{
case