代码搜索:Switch
找到约 10,000 项符合「Switch」的源代码
代码结果 10,000
www.eeworm.com/read/265329/11268267
cpp ps2txt.cpp
#include "ps2txt.h"
void dviparse(FILE* source,FILE* target)
{
int ch, /* current character */
prev_ch = '\n', /* previously read character */
in_paren = FALSE, /* in
www.eeworm.com/read/410785/11269630
c init.c
/*
Name:init.c
Copyright:Starting Line
Author:
Date: 13-11-08 13:02
Description:init类中成员函数的定义
*/
/*
TO
这段可以看看,也可以不看,主要就是累代码,没啥新意
*/
#include "includes.h"
SET setREC [NUM_S
www.eeworm.com/read/410761/11270156
cmd sect.cmd
-stack 1000h
-heap 500h
MEMORY
{
PAGE 0 :
DARAM: o = 1000H,l = 3000H
PAGE 1 :
mmregs: o = 0h,l=080h
SRAM: o = 4000H,l = 1000H
www.eeworm.com/read/410511/11280493
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/410432/11287624
c animals.c
/* animals.c -- uses a switch statement */
#include
#include
int main(void)
{
char ch;
printf("Give me a letter of the alphabet, and I will give ");
printf("an
www.eeworm.com/read/264473/11312017
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/409572/11319077
c al4_5.c
/*案例代码文件名:AL4_5.C。*/
main()
{ int score, grade;
printf("Input a score(0~100): ");
scanf("%d", &score);
grade = score/10; /*将成绩整除10,转化成switch语句中的case标号*/
switch (grade)
{ case 10
www.eeworm.com/read/409572/11319114
c al9_13.c
/*案例代码文件名:AL9_13.C*/
/*程序功能:带参主函数的应用示例*/
main(int argc,char *argv[])
{ char c;
if (argc != 3) printf("参数个数不对!\n");
else
{ c=*argv[1]; /*截取第二个实参字符串的第一个字符*/
switc
www.eeworm.com/read/263516/11358321
m subsref.m
function b = subsref(a,index)
switch index(1).type
case '.'
switch index(1).subs
case 'con'
if length(index) == 2
b = a.con(index(2).subs{:});
else
b = a.con;
www.eeworm.com/read/263516/11358322
m subsasgn.m
function a = subsasgn(a,index,val)
switch index(1).type
case '.'
switch index(1).subs
case 'con'
if length(index) == 2
a.con(index(2).subs{:}) = val;
else
a.con = v