代码搜索:Switch
找到约 10,000 项符合「Switch」的源代码
代码结果 10,000
www.eeworm.com/read/450647/7479255
cmd lf2406.cmd
-o lao.out
MEMORY/*请对照芯片存储器映射图理解*/
{
PAGE 0 :
VECS: origin=0x0000, length=0x0040
FLASH: origin=0x1000, length=0x6FFF
SARAMP: origin=0x8000, length=0x0800
PAGE 1 :
www.eeworm.com/read/449736/7497614
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/449730/7497799
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/449694/7497942
c 汉诺塔.c
这是个汉诺塔程序,在调试的时候,输入的数字最好不要大于15,因为每大一个数
所得的结果的步骤都会多一倍。如果你有耐心等待结果的话除外。汉诺塔是在欧洲
流行的一种游戏,有a,b,c三个竿。a竿上有若干个由大到小的圆盘,大的在下面,
小的在上面,b,c都是空杆,请你把a杆上的圆盘都倒到别的杆上,或b或c,在倒盘
的过程中不可以大的压小的,实例程序如下:
#include ...
www.eeworm.com/read/449572/7500459
cpp 迷宫问题.cpp
#include
#include
#include
#define NULL 0
typedef struct node{
char date;
struct node *next;
}SNode;
SNode *InitStack(){
SNode *top;
top=(SNode *)mall
www.eeworm.com/read/449530/7501302
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/449040/7519680
cpp 四则运算.cpp
#include
float YunSuan(float x,char p,float y);
void main()
{
float a,b,m;
char c;
printf("请输入计算式");
scanf(" %f %c %f",&a,&c,&b);
m=YunSuan(a,c,b);
printf("%0.2f%c%0.2f=%0.2f"
www.eeworm.com/read/448818/7525282
c inputnumber.c
//*************************************************************************************************
//* *
//* ******************************数字处理程序************************
www.eeworm.com/read/448613/7529066
cpp 魔王语言.cpp
#include
#include
#include
#include
void transfer(char *a)
{
using std::stack;
stack s1;
using std::queue;
queue q1,q2;//q1用于存放整个字符串。q2用于存放
www.eeworm.com/read/448345/7534697
cmd light.cmd
-w
-stack 400h
-heap 100
-l rts.lib
MEMORY
{
PAGE 0:
VECT : o=80h,l=80h
PRAM : o=100h,l=1f00h
PAGE 1:
DRAM : o=2000h,l=1000h
}
SECTIONS
{
.text : {}> PRAM