/// /// 文本长度判断 /// public static bool
TextLength(int min, int max, string s) { if (s.Length max) { return false; }
else { return true; } } /// ///...
分类:
Web程序 时间:
2014-05-25 23:09:29
阅读次数:
349
var userid = $("username");var usersp =
$("usersp");var reg = /^[A-Za-z0-9_\-\u4e00-\u9fa5]+$/;function $(id){ return
document.getElementById(id);} f....
分类:
其他好文 时间:
2014-05-25 22:43:36
阅读次数:
299
前提条件是已经安装了g++要是没有安装,就yum install
g++1,编写Hello.cpp1>vim2>#include int main(){ printf("Hello,the world!");
return 0;}3>:w hello.cpp2,退出vim !q3,编译#g++ .....
分类:
编程语言 时间:
2014-05-25 22:19:17
阅读次数:
468
#import NSInteger myCompare(id obj1,id obj2,void
*context){ //不分大小写进行升序排序 //return [obj1 caseInsensitiveCompare:obj2]; return
-[obj1 caseInsensitive.....
分类:
其他好文 时间:
2014-05-25 20:36:35
阅读次数:
250
1、设置cocos2dx竖屏: RootViewController.mm 中- (BOOL)
shouldAutorotate { return NO;} 改为- (BOOL) shouldAutorotate { return YES;}2、项目竖屏
设置项目Targe中的De...
分类:
其他好文 时间:
2014-05-25 19:06:50
阅读次数:
185
1、DETERMINISTIC函数-- Create deterministic PV
function.CREATE OR REPLACE FUNCTION pv( future_value NUMBER, periods NUMBER,
interest NUMBER )RETURN NUMBE...
分类:
数据库 时间:
2014-05-25 15:30:11
阅读次数:
625
简单01背包 1 #include 2 #include 3 int max(int a,int b)
4 { 5 return a>b?a:b; 6 } 7 int main() 8 { 9 int t;10 int n,v;11 int
f[1100],v...
分类:
其他好文 时间:
2014-05-25 13:55:14
阅读次数:
196
#include
int main()
{
int i;
int b[5]={1,3,5,7,9};
int (*a)[5] = &b;
int *m = a; //a范围内的空间按照 int大小来取值
for(i = 0;i
{
printf("%d\n",m[i]);
}
return 0;
}
输...
分类:
编程语言 时间:
2014-05-25 11:03:36
阅读次数:
239
IplImage* CaptureImg()
{
IplImage* pImg = NULL;
CvCapture* pCam = NULL;
pCam = cvCreateCameraCapture(0);
if(NULL == pCam)
{
fprintf(stderr, "Can't init Camera!\n");
return NULL;
}
cvSetCa...
分类:
其他好文 时间:
2014-05-25 10:59:29
阅读次数:
230