一:函数return 无标题文档
二:获取元素样式/ 无标题文档
三:封装自己的库 function $( v ){ if( typeof v === 'function' ){ window.onload = v; } else if ( typeof v === 'string' ) { ret...
分类:
其他好文 时间:
2015-06-04 18:44:25
阅读次数:
205
使用dispatch_semaphore_t 实现dispatch_semaphore_t sema = dispatch_semaphore_create(0); //创建信号量__block ALAssetsGroup *ret = nil;ALAssetsLibraryGroupsEnume....
分类:
移动开发 时间:
2015-06-04 13:25:07
阅读次数:
307
#includeconst int M = 1e5 ;int a[M] , c[M];int n , m ;void modify (int x , int add ){ for (; x 0 ; x -= x & (-x)) ret += c[x] ; return r...
分类:
编程语言 时间:
2015-06-04 06:10:38
阅读次数:
117
判断是否为空txt的方法 1 bool empty_file() 2 { 3 bool ret = 0; //初始化为0 4 ifstream fin; 5 fin.open("data.txt"); 6 if(fin.peek() == EOF) 7 ...
分类:
编程语言 时间:
2015-06-02 21:53:43
阅读次数:
105
常用的控制执行流程有if-else;迭代while,do-while,for,foreach;return;break,continue;和break,continue配合使用的标签;switch;在过thinking in java这章的过程中,有两个地方又重新认识了一下,来和大家分享。1、ret...
分类:
编程语言 时间:
2015-06-02 19:46:39
阅读次数:
173
??
/*
没有扩展名要求的文件名检查\n
1长度为0\n
2目录部分不正确\n
3文件名含有非法字符\n
4如果扩展名不是*,那么检查扩展名是否符合\n
*/
BOOL CCommonFunc::S_IsValidFileName(CString &strP, CString &strExt)
{
// LN add 2005/05/18 begin
BOOL ret;...
分类:
编程语言 时间:
2015-06-02 06:53:53
阅读次数:
160
#include
#include "stdlib.h"
#define N 256 //宏定义
//比较两个字符串的大小
int str_compare(const char* src,const char* dst)
{
int ret = 0;
if (src == dst)
{
return 0;
}
if (dst == NULL)
{
return -1;
...
分类:
编程语言 时间:
2015-06-01 11:35:46
阅读次数:
196
//动态分配内存对输入的任意字符串排序
#include
#include
#include
#include
//比较大小
//int str_compare(const char* src,const char* dst)
//{
// int ret = 0;
// if (src == dst)
// {
// return 0;
// }
// if (dst == NULL)
//...
分类:
编程语言 时间:
2015-06-01 11:32:17
阅读次数:
155
1 //产生[low,high]内的任意随机数,并返回 2 float randnum(int optimization,float low,float high) 3 { 4 int ret_rnd = 0.0; 5 6 float integerf = 0.0; 7 float driftf.....
分类:
其他好文 时间:
2015-05-30 21:02:27
阅读次数:
138
function save(){ var ids=${ids}; var ret_remark=$("#ret_remark").val(); $.ajax({ url:"/busi/tackle/TackledurableAction.ered...
分类:
其他好文 时间:
2015-05-30 12:06:00
阅读次数:
104