码迷,mamicode.com
首页 >  
搜索关键字:ret    ( 30742个结果
Java MongoDB insert
public class? Foo implements IdObject { ?? ?public String id; ?? ?public String firstName; ?? ?private String lastName; ?? ? ?? ?@Override ?? ?String getId() { ?? ??? ?ret...
分类:数据库   时间:2015-09-09 23:09:01    阅读次数:405
题目9 打印日期
1 import java.util.Scanner; 2 3 public class Main{ 4 private static int isLeap(int year){ 5 if(year%4==0&&year%100!=0||year%400==0) ret...
分类:其他好文   时间:2015-09-09 17:29:37    阅读次数:206
解压上传的文本文件压缩包并将解压后的文本文件内容插入到数据库
$content?=?file_get_contents($_FILES["file"]["tmp_name"]); $ret->content?=?$content; if?(file_exists("/var/www/api/uploads//"?.?$_FILES["file"]["name"])) { echo?$_FILES["file"]["na...
分类:数据库   时间:2015-09-09 13:36:56    阅读次数:157
CRM行编辑控件
var clientUrl = "http://172.16.30.12:5555/teachnet"//The XRM OData end-pointvar ODATA_ENDPOINT = "/XRMServices/2011/OrganizationData.svc";function ret...
分类:其他好文   时间:2015-09-08 18:15:10    阅读次数:371
c/c++ unix ipc
c/c++ unix ipc一个例子//c_unix.c#include #include #include #include #define UNIX_DOMAIN "/tmp/UNIX.domain"int main(void){int connect_fd;int ret;char snd_b...
分类:编程语言   时间:2015-09-04 07:29:11    阅读次数:174
C/C++简介
在说C/C++之前先说下.net中间语言 .net中间语言其实也可以理解为,微软内部使用的一种语言,C#代码会被CLR转换为IL语言 如图,这就是IL语言,可以看到instance实例,构造函数ctor等甚至有些地方还能看到继承.没有什么地方像汇编吧,唯一的就是L_0000:ret有点点...
分类:编程语言   时间:2015-09-02 00:39:49    阅读次数:217
LeetCode-Interleaving String
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example, Given: s1 = "aabcc", s2 = "dbbca", When s3 = "aadbbcbcac", return true. When s3 = "aadbbbaccc", ret...
分类:其他好文   时间:2015-08-28 19:53:37    阅读次数:148
自动封箱和拆箱
Integer 中public static Integer valueOf(int i) { assert IntegerCache.high >= 127; if (i >= IntegerCache.low && i <= IntegerCache.high) ret...
分类:其他好文   时间:2015-08-28 10:58:17    阅读次数:145
字符串操作的实现:strstr、strcat、strcmp和stcpy
几个重点强调一下: (1)注意使用assert; (2)strcat 和 strcpy最后注意赋值'\0'; (3)strcpy注意内存覆盖的情况; (4)strcmp中:while(!(ret = *(unsigned char *)s1 - *(unsigned char *)s2) && *s2 != '\0');???为什么要转换类                  型; (5)...
分类:其他好文   时间:2015-08-27 15:15:57    阅读次数:144
PHP函数求一个整数的阶乘
//随手写的一个阶乘的函数 注意:不要把负数给忘了!不要把负数给忘了!不要把负数给忘了! <?php? function?jisuan($i){ if($i==0){?????????????????????????????? ?????ret...
分类:Web程序   时间:2015-08-26 22:47:05    阅读次数:180
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!