代码搜索:Switch
找到约 10,000 项符合「Switch」的源代码
代码结果 10,000
www.eeworm.com/read/321262/13410076
c 9-3.c
#include
#include
main() {
int pid;
pid = fork();
switch(pid) {
case -1:
perror("fork failed");
exit(1);
case 0:
execl("/bin/ls","ls","-l"
www.eeworm.com/read/321197/13410789
c exti.c
/*----------------------------------------------------------------------------
* Name: Exti.c
* Purpose: EXTI usage for STM32
* Version: V1.00
*---------------------------------------------
www.eeworm.com/read/320903/13416255
cpp f0709.cpp
//=====================================
// f0709.cpp
// 嵌套的局部作用域
//=====================================
#include
using namespace std;
//-------------------------------------
void fn(
www.eeworm.com/read/320625/13421079
cxx cogcube.cxx
#include "cog.hxx"
// This file contains the implementations for cells other than simplices:
/*
cogIndex Cogeometry::Square(cogFlag2& f, const cogFlag1& o,
const cogSquare& s) const;
www.eeworm.com/read/320625/13421269
cxx cogrefine.cxx
#include "cog.hxx"
cogFloat xon(const wzPoint& x,const wzPoint& y,const wzPoint& z);
// This file defines the standard binary refinement algorithm
/*
cogIndex Cogeometry::refine(cogFlag1 &f,
www.eeworm.com/read/320372/13427921
c 3x3key.c
/******************************************/
//文件名:3X3Key.c
//功能: 键盘扫描的应用
//作者: young
//时间: 2006.11.6
//目标MCU:ATmega8
//晶振: 8MHZ
/******************************************/
#include
www.eeworm.com/read/320372/13427922
_c 3x3key._c
/******************************************/
//文件名:3X3Key.c
//功能: 键盘扫描的应用
//作者: young
//时间: 2006.11.6
//目标MCU:ATmega8
//晶振: 8MHZ
/******************************************/
#include
www.eeworm.com/read/319883/13440287
cpp prog4_08.cpp
// Example 4.8 Using the switch statement
#include
using std::cin;
using std::cout;
using std::endl;
int main() {
int choice = 0; // Store selection value here
www.eeworm.com/read/319871/13441131
m evalinzzy.m
function y1=evalinzzy(a,s)
t=(0:a)/a*2*pi;
y1=subevalinzzy(4,s);
%------------ subfunction -------------
function y2=subevalinzzy(a,s)
t=(0:a)/a*2*pi;ss='a*exp(i*t)';
switch s
case {'base','c
www.eeworm.com/read/319871/13441238
m dydt2.m
function Yd=DYDt2(t,Y,flag,G,ME)
% flag 按ODE文件格式规定,必须是第三输入宗量。对它的赋值由ode45指令自动产生。
% 第4、5宗量是被传递的参数
switch flag
case ''
X=Y(1:2);V=Y(3:4);r=sqrt(sum(X.^2));Yd=[V;-G*ME*X/r^3];
otherwise
error(['