码迷,mamicode.com
首页 >  
搜索关键字:return    ( 60766个结果
poj2909 || poj2262
#include #include #includeint isPri(int a, int b){ int i; for(i=2; i <= sqrt(a); i++) { if(a%i == 0) return 0; } for(...
分类:其他好文   时间:2015-06-18 19:12:06    阅读次数:122
【LeetCode 209】Minimum Size Subarray Sum
Given an array ofnpositive integers and a positive integers, find the minimal length of a subarray of which the sum ≥s. If there isn't one, return 0 i...
分类:其他好文   时间:2015-06-18 18:47:04    阅读次数:98
MeteoInfoLab脚本示例:subplot
subplot命令可以自动等间距分配多个坐标系(Axes),命令中有三个参数,前两个定义了行数和列数,第三个指定了当前的坐标系(Axes),绘图命令是作用在当前坐标系中的。脚本程序:def f(t): return exp(-t) * cos(2*pi*t)t1 = arange(0., 5....
分类:其他好文   时间:2015-06-18 18:41:17    阅读次数:198
leetCode(11):Reverse linked list II
Reverse a linked list from position m to n. Do it in-place and in one-pass. For example: Given 1->2->3->4->5->NULL, m = 2 and n = 4, return 1->4->3->2->5->NULL. Note: Given m, n satisfy t...
分类:其他好文   时间:2015-06-18 17:26:10    阅读次数:110
leetCode(12):Remove Duplicates from Sorted List
Given a sorted linked list, delete all duplicates such that each element appear only once. For example, Given 1->1->2, return 1->2. Given 1->1->2->3->3, return 1->2->3. /** * Definition f...
分类:其他好文   时间:2015-06-18 17:22:55    阅读次数:79
js限制文本框只可以输入数字
//只可以输入数字function getEvent() { if (document.all) { return window.event; //for ie } func = getEvent.caller; while (func != null) { var arg0 =...
分类:Web程序   时间:2015-06-18 16:59:35    阅读次数:124
javascript中的startWith和endWith的几种实现方法
JavaScript采用正则表达式实现startWith、endWith效果函数代码如下:String.prototype.startWith=function(str){ var reg=new RegExp("^"+str); return reg.test(this);}String.prot...
分类:编程语言   时间:2015-06-18 16:41:35    阅读次数:126
[LeetCode] Rotate List
Rotate List   Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->3->NULL. 解题思路: 这道题题意说得不...
分类:其他好文   时间:2015-06-18 15:23:28    阅读次数:115
使用API进行销售订单的Pick Release和Pick Confirm
DECLARE x_return_status VARCHAR2(2); x_msg_count NUMBER; x_msg_data VARCHAR2(2000); p_api_version_number NUMBER := 1.0; init_msg_list VARCHAR2(200); x_msg_d...
分类:Windows程序   时间:2015-06-18 15:22:06    阅读次数:197
C#调用dll
#include #include extern "C" __declspec(dllexport)int TCharParm(char* in,int len,char* out){ memset(out,0,4); memcpy(out,in,len); return 0;}extern "C"...
分类:Windows程序   时间:2015-06-18 14:55:50    阅读次数:139
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!