#include "c.h" #define I(f) b_##f static void I(segment)(int n) { static int cseg; if (cseg != n) switch (cseg = n) { case CODE: print("code\n"); return; case DATA: print("data\n"
http://www.codebf.com/read/166734/5473163
#include char * gets(const char *str) { char *s=str; char c; unsigned int count=0; while (1) { c=getchar(); switch(c) { case '\b': // backspace if (c
http://www.codebf.com/read/165393/5482903
#include "myLED.h" #include void LEDctl(int cmd,unsigned short arg) { switch (cmd) { case LEDoff: {P1|=arg; break;} case LEDon : {P1&=~arg; break;} case LEDchange: {P1=~P1;
http://www.codebf.com/read/165337/5483343
http://www.codebf.com/read/165337/5483357
http://www.codebf.com/read/164809/5488034
# Commands: # Reset # Timeout # CancelLast # RunScheduler # Test simple case where timeouts are scheduled in order and # called in order Reset
http://www.codebf.com/read/164348/5490759
Select...Case条件判断语句 Select...Case条件判断语句
http://www.codebf.com/read/164192/5498459
使用Choose()函数简化Select...Case语句 使用Choose()函数简化Select...Case语句
http://www.codebf.com/read/164192/5498463
unit Unit1; const V = 1; function caseme(Param: integer): string; begin case Param of V: Result := '1 selected'; 1 + 1: Result := '2 selected'; else Re
http://www.codebf.com/read/163987/5501667
/* Further -Wswitch tests. */ /* { dg-do compile } */ /* { dg-options "-Wswitch" } */ enum e { e1 = 0, e2 = 1, e3 = 1, e4 = 2 }; int foo (enum e ei, int j) { switch (ei) { case e1: return
http://www.codebf.com/read/162614/5517266
虫虫下载站 半导体技术网 电子研发网 源码地带 电源技术网 单片机技术网 医疗电子技术 嵌入式系统与单片机