代码搜索结果
找到约 21,386 项符合
Switch 的代码
switch.2bk
tst/switch.c:55: warning: missing return value
tst/switch.c:73: warning: missing return value
tst/switch.c:97: warning: missing return value
tst/switch.c:112: warning: missing return value
tst/swi
switch.java
class Switch {
public static void main(String args[]) {
int i;
for(i=0; i
wtr-switch-1.c
/* Test for -Wtraditional warnings on switch operands of type long.
Note, gcc should omit these warnings in system header files.
By Kaveh R. Ghazi 8/22/2000. */
/* { dg
switch-1.c
/* { dg-do compile { target rs6000-*-linux* powerpc-*-linux*} } */
/* { dg-options "-fpic -O2" } */
void f (char *s)
{
for (;;)
{
int t = 6;
switch (t)
{
case 2:
*s = '2';
cas
wtr-switch-1.c
/* Test for -Wtraditional warnings on switch operands of type long.
Note, gcc should omit these warnings in system header files.
By Kaveh R. Ghazi 8/22/2000. */
/* { dg
switch-1.c
/* { dg-do compile { target rs6000-*-linux* powerpc-*-linux*} } */
/* { dg-options "-fpic -O2" } */
void f (char *s)
{
for (;;)
{
int t = 6;
switch (t)
{
case 2:
*s = '2';
cas
switch.pm
package CGI::Switch;
use Carp;
use strict;
use vars qw($VERSION @Pref);
$VERSION = '0.06';
@Pref = qw(CGI::Apache CGI); #default
sub import {
my($self,@arg) = @_;
@Pref = @arg if @ar
switch.c
#include
int main()
{
int a = 3;
switch(a){
default:
printf("default\n");
break;
case 3:
printf("3\n");
break;
}
}
switch.java
class Switch {
public static void main(String args[]) {
int i;
for(i=0; i
switch.cpp
#include
int main()
{
int a;
printf("input integer number (1-7): ");
scanf("%d",&a);
switch (a)
{
case 1:
printf("Monday\n");
break;
case 2:
printf("Tuesday\n");