1. 判断状态: if RzCheckTree1.Selected.StateIndex = 2 then //则为选中状态 else if RzCheckTree1.Selected.StateIndex = 1 then //则为未选中状态 else if RzCheckTree1....
asp.net中如何获取CheckBoxList的值stringitem=string.Empty;if(CheckBoxList1.SelectedIndex==-1){Alert("请选择");return;}else{foreach(ListItemliinCheckBoxList1.Items){if(li.Selected){item+=li.Value.ToString()+",";}}Selected=Selected.Substring(0,Selected.Length-..
分类:
Web程序 时间:
2015-04-24 01:22:43
阅读次数:
217
1,方法最好是单独弄到一个类中,定义为类方法.都知道iOS的debug与release,所以我一开始就定义了一个这样的宏:#ifdef DEBUG#define ZHHLog(...) NSLog(__VA_ARGS__)#else#define ZHHLog(...)#endif#define M...
分类:
移动开发 时间:
2015-04-23 22:56:39
阅读次数:
336
最原始DFS ,n代表棋盘是n*n的
#include
#include
#include
using namespace std ;
int a[1000] ;
int cnt,n ;
void dfs(int cur)
{
if(cur == n)
cnt++ ;
else for(int i = 0 ;i<n ;i++)
{
...
分类:
其他好文 时间:
2015-04-23 21:51:05
阅读次数:
116
//验证用户名的正则$user_name = 'user_name12';if (preg_match('/^[a-z\d_]{5,20}$/i', $user_name)) {echo 'your username is ok' . PHP_EOL . '';} else {echo 'your ...
分类:
Web程序 时间:
2015-04-23 19:38:21
阅读次数:
164
//验证用户名的正则$user_name = 'user_name12';if (preg_match('/^[a-z\d_]{5,20}$/i', $user_name)) {echo 'your username is ok' . PHP_EOL . '';} else {echo 'your ...
分类:
其他好文 时间:
2015-04-23 19:24:18
阅读次数:
177
求阶乘#include<stdio.h>
intfact(intn);
intmain()
{
inti;
printf("请输入要求阶乘的一个整数:");
scanf("%d",&i);
printf("%d的阶乘结果为:%d\n",i,fact(i));
getch();
return0;
}
intfact(intn)
{
if(n<=1)
return1;
else
returnn*fact(n-1);
}
分类:
其他好文 时间:
2015-04-23 18:00:58
阅读次数:
122
Perl结构控制语句:
if条件语句:
if (condition) {
expression;
} elsif {
expression;
} else {
expression;
}
unless条件语句:
条件为假时执行.
unless (condition) {
expression;
} elsi...
分类:
其他好文 时间:
2015-04-23 17:29:45
阅读次数:
118
@echo off
set BuildConsoleTool=
goto findpathc
:findpathc
set BuildConsoleTool="C:\Program Files (x86)\Xoreax\IncrediBuild\BuildConsole.exe"
if exist %BuildConsoleTool% ( goto build ) else goto f...
分类:
其他好文 时间:
2015-04-23 15:59:48
阅读次数:
306
用indexOf()函数,不包含则返回-1,包含返回0;Stringstr="ABC_001";if(str.indexOf("ABC")!=-1){System.out.println("包含");}else{
System.out.println("不包含");
}
分类:
编程语言 时间:
2015-04-23 13:35:17
阅读次数:
106