码迷,mamicode.com
首页 >  
搜索关键字:switch case    ( 15339个结果)
POJ 3469(Dual Core CPU-最小割)[Template:网络流dinic V2]
Language: Default Dual Core CPU Time Limit: 15000MS   Memory Limit: 131072K Total Submissions: 19321   Accepted: 8372 Case Time Limit: 5000MS Description As more...
分类:其他好文   时间:2014-10-30 00:17:52    阅读次数:310
No.四
写了 一晚了,膝盖以上都麻了;接下来是选择结构二(语法):swith(表达式){ case 常量1: //代码块1; break; case 常量2: //代码块2; break; ......... default: //代码块n; break;}...
分类:其他好文   时间:2014-10-29 23:33:57    阅读次数:225
Climbing Stairs
You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top? 简单递推 class Solution { pub...
分类:其他好文   时间:2014-10-29 22:21:11    阅读次数:175
java7 语法糖 之 switch 语句中的string
Jdk7新增的switch 语句中常量可以string类型, 例如: @Test public void test_1(){ String string = "hello"; switch (string) { case "hello": System.out.println(string); break; default: throw new Illeg...
分类:编程语言   时间:2014-10-29 21:37:27    阅读次数:170
cisco 路由器&switch权限管理:使用privilege exec level 14 show running-config后,看不到啥内容
当我们想在cisco路由器或交换机上执行权限分级管理时,常常需要为不同级别的用户分配超出默认设置的命令,比如showrun就是最基本的排错命令。但是当你的用户级别处在0-14时,是无法执行该命令的。你可以使用如下命令为这些用户赋权限:privilegeexeclevel14showrunning-config..
分类:系统相关   时间:2014-10-29 19:48:27    阅读次数:302
C#委托
转自:http://www.cnblogs.com/ArmyShen/archive/2012/08/31/2664727.html委托是一个类,它定义了方法的类型,使得可以将方法当作另一个方法的参数来进行传递,这种将方法动态地赋给参数的做法,可以避免在程序中大量使用if-else(switch)语...
分类:Windows程序   时间:2014-10-29 19:04:30    阅读次数:235
Climbing Stairs 爬楼梯问题,每次可以走1或2步,爬上n层楼梯总方法 (变相fibnacci)
You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb...
分类:其他好文   时间:2014-10-29 12:48:28    阅读次数:170
android通话时第二通电话呼叫等待提示音音量大小
callnotifier.java  public void run() { ......             switch (mToneId) {                 case TONE_CALL_WAITING:                     toneType = ToneGenerator.TONE_SUP_CALL_WAITING;          ...
分类:移动开发   时间:2014-10-29 09:15:04    阅读次数:228
.net中将DataTable导出到word、Excel、txt、htm的方法
dt:DataTablestrFile:fileNamestrExt:typeprivate void GridExport(DataTable dt, string strFile, string strExt) { string strAppType = ""; switch (s...
分类:Web程序   时间:2014-10-29 01:40:14    阅读次数:188
Switch Game
Problem DescriptionThere are many lamps in a line. All of them are off at first. A series of operations are carried out on these lamps. On the i-th op...
分类:其他好文   时间:2014-10-29 01:39:28    阅读次数:433
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!