码迷,mamicode.com
首页 >  
搜索关键字:Switch    ( 6374个结果
共享式以太网与交换式以太网的性能比较(OPNET网络仿真实验)
一、实验目的比较共享式以太网和交换式以太网在不同网络规模下的性能。二、实验方法使用opnet来创建和模拟网络拓扑,并运行分析其性能。三、实验内容3.1 实验设置(网络拓扑、参数设置、要观察的数据等)步骤1:下载IT Guru,创建一个新的项目,将其命名为hub_switch_project。步骤2:...
分类:Web程序   时间:2014-11-06 19:24:38    阅读次数:365
randString-----------thinkphp
static public function randString($len=6,$type=‘‘,$addChars=‘‘) { ??????? $str =‘‘; ??????? switch($type) { ??????????? case 0: ??????????????? $chars=‘ABCD...
分类:Web程序   时间:2014-11-06 15:13:41    阅读次数:193
IOS 方向开发
UIDeviceOrientationorientation;orientation=[[UIDevicecurrentDevice]orientation];switch(orientation){caseUIDeviceOrientationFaceUp:self.orientationLabel.text=@"FaceUp";break;caseUIDeviceOrientationFaceDown:self.orientationLabel.text=@"FaceDown";break;caseUID..
分类:移动开发   时间:2014-11-06 02:10:21    阅读次数:174
widget intent重复问题
今天在做android widget时发现点击任意widget时只会更新最后一个widget原来是requestCode的问题 Intent intent = new Intent(WidgetProvider.ACTION_SWITCH); intent.putExtra(AppWidgetMan...
分类:其他好文   时间:2014-11-05 19:35:42    阅读次数:174
break、continue和goto 三者作用介绍
跳跃语句 由于break、continue和goto语句有助于跳跃到代码中的某个特定语句,因此它们属于跳跃语句。下面是这三个语句的介绍。 ①break语句 这个语句常与switch语句联合使用;但是,C#允许你使用它跳出当前语句块。我们经常用break语句跳出一个循环语句块。 下面是brea...
分类:其他好文   时间:2014-11-05 19:00:28    阅读次数:307
MSSQL中数据库对象类型解释
public string GetObjectTypeName(object oType){switch (oType+""){case "U":return "用户表";case "V":return "视图";case "P":return "存储过程";case "TF":return "表函...
分类:数据库   时间:2014-11-05 19:00:06    阅读次数:244
2053——switch game
http://acm.hdu.edu.cn/showproblem.php?pid=2053思路:根据n=5的图,可以知道,就是判断n可以被1-n里的数整除多少次。。#includeint main(){ int k,j,n; while(scanf("%d",&n)!=EOF){ ...
分类:其他好文   时间:2014-11-05 14:29:02    阅读次数:173
JS侦测设备旋转方向
window.onload = window.onresize = function initialLoad(){updateOrientation();}function updateOrientation(){ var contentType = ''; switch(window....
分类:Web程序   时间:2014-11-05 12:48:00    阅读次数:152
ng-switch dome
.........
分类:其他好文   时间:2014-11-05 12:47:32    阅读次数:129
Objective-C之成魔之路【5-选择结构】
重开发者的劳动成果,请勿转载 Objective-C中的控制语句有以下几类:  ? 分支语句: if-else, switch ? 循环语句: while, do-while, for ? 与程序转移有关的跳转语句: break, continue, goto 对于任何程序语言来说,有能力进行判断是一项基本特性。 if-else语句 分支语句提供了一种控制...
分类:其他好文   时间:2014-11-05 00:28:12    阅读次数:233
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!