代码搜索:Switch
找到约 10,000 项符合「Switch」的源代码
代码结果 10,000
www.eeworm.com/read/240525/13215579
c dialog.c
#include "..\gui.h"
USER_PRO MyDialog(HAND hd,MESSAGE msg)
{
if(msg.type == GM_SYSTEM)
switch(msg.message)
{
case GM_Create:
CreateObject(hd,BUTTON,1,1,"Hello!",10,10,100,100,NULL,NULL);
r
www.eeworm.com/read/240524/13215709
c hello.c
#include
#include "gui.h"
USER_PRO MainWin(HAND hd,MESSAGE msg)
{
if(msg.type == GM_SYSTEM)
switch(msg.message)
{
case GM_Create:
CreateObject(hd,TEXTBOX,1,1,"",10,30,120,50,NUL
www.eeworm.com/read/138667/13226465
m hanshu.m
t=-pi:0.1:pi;
trigname=input('Input trig function name:');
switch trigname
case 'sin'
plot(t,sin(t))
case 'cos'
plot(t,cos(t));
case 'tan'
plot(t,tan(t))
www.eeworm.com/read/325030/13229517
m exp2_14.m
clear
clc
close
t=-pi:0.1:pi;
trigname=input('Input trig functions name:')
switch trigname
case 'sin'
plot(t,sin(t))
case 'cos'
plot(t,cos(t))
otherwise
break %终止,跳出switch语句
end
www.eeworm.com/read/325023/13230698
java vowelsandconsonants.java
//: control/VowelsAndConsonants.java
// Demonstrates the switch statement.
import java.util.*;
import static net.mindview.util.Print.*;
public class VowelsAndConsonants {
public static void m
www.eeworm.com/read/324972/13235132
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/138416/13236977
c drvpower.c
///////////////////////////////////////////////////////////////////
//电源管理例程的实现:
//1. 电源管理例程DrvPowerIrp()。
///////////////////////////////////////////////////////////////////
#include
www.eeworm.com/read/138378/13239232
h gettype.h
/*=============================================
** 2005-8-30 **
** 获得token所对应的类型信息 **
** lizhu zhang **
=============================================*/
/*============
www.eeworm.com/read/240026/13240012
txt readme.txt
ADSPBF535 EZ-KIT Lite pwr_mgmt Demo
Analog Devices, Inc.
DSP Division
Three Technology Way
P.O. Box 9106
Norwood, MA 02062
Date Created: 1/30/02
This directory contains example ADSPBF53
www.eeworm.com/read/324057/13291071
cpp main.cpp
#include "iostream.h"
void main()
{
int a=0,b=1,c=2;
switch (a)
{
case 0:
cout