代码搜索:Switch

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

代码结果 10,000
www.eeworm.com/read/341081/12110200

m metric.m

function distance=metric(x,y) if x==y distance=0; else distance=1; end % switch (y) % case 0 % if x==0 % distance=0.0458; % end % if x==1 % distance=2;
www.eeworm.com/read/152362/12119068

makefile

C=gcc LDLIBS=`gnome-config --libs gnomeui` CFLAGS=-Wall -g `gnome-config --cflags gnomeui` all: main bg switch frame text line field sg popmenu sig toggle SySInfo bg: bg.o switch: switch.o frame: f
www.eeworm.com/read/152362/12119257

c~ sysinfo.c~

int SySInfo(int i) { switch(i) { case 1: {printf("操作错误!\n"); break; } case 2: {printf("操作无效!\n");
www.eeworm.com/read/152362/12119265

makefile~

C=gcc LDLIBS=`gnome-config --libs gnomeui` CFLAGS=-Wall -g `gnome-config --cflags gnomeui` all: main bg switch frame text line field sg popmenu sig toggle SySInfo main: main.o bg: bg.o switch: swit
www.eeworm.com/read/340916/12124814

cpp ex3_05.cpp

// Ex3_05.cpp // Using the switch statement #include using std::cin; using std::cout; using std::endl; int main() { int choice = 0; // Store selection val
www.eeworm.com/read/340433/12157660

cpp pcode.cpp

// pcode.cpp: implementation of the pcode class. // ////////////////////////////////////////////////////////////////////// #include "pcode.h" //////////////////////////////////////////////////
www.eeworm.com/read/151936/12160862

c 9.c

# include main() { float a,b; int i; printf("input one number:"); scanf("%f",&a); if(a>=4000) i=4; else i=a/1000; switch (i) { case 0:b=a*
www.eeworm.com/read/340400/12162987

ucf pndkr_1e.ucf

# This is a location constraints file for use with the PNDKR-1E FPGA board. # The PNDKR-1E was designed by John Clayton # # Author of this file: John Clayton # Update: Jan. 6, 2003 # # NOTE: To
www.eeworm.com/read/340112/12181688

m teach.m

function t=teach(nrnd) % provide a teacher according to given pattern switch ceil(nrnd/8)-1 case 1 t=[1 -1 -1 -1 -1 -1 -1 -1 -1 -1]; case 2 t=[-1 1 -1 -1 -1 -1 -1 -1 -1
www.eeworm.com/read/253866/12181709

cpp list0716.cpp

//Listing 7.16 // Demonstrates switch statement #include int main() { using namespace std; unsigned short int number; cout