首页 > 2015年06月10日 > 全部分享
php的递归函数
递归函数,就是在函数体内调用自身例子:"; $number++; repayment($number);}}//递归函数,就是在函数体内调用自身,疑问:加exit()和不加exit有什么区别?repayment(1);?>例子2:function add($num){if ($num>1){ $nu...
分类:Web开发   时间:2015-06-10 19:15:34    收藏:0  评论:0  赞:0  阅读:369
swift与OC的区别(每日更新)
Objective C中的写法TwoViewController *v = [[TwoViewController alloc] init]; //这样会把TwoViewController默认关联到TwoViewController.xib上//等同调用了方法TwoViewController *...
分类:编程语言   时间:2015-06-10 19:14:54    收藏:0  评论:0  赞:1  阅读:1217
pthread_mutex_init & 互斥锁pthread_mutex_t的使用
pthread_mutex_initl头文件:#include l函数原型:int pthread_mutex_init(pthread_mutex_t *restrict mutex,const pthread_mutexattr_t *restrict attr);pthread_mutex_t...
分类:其他   时间:2015-06-10 19:14:44    收藏:0  评论:0  赞:0  阅读:283
js中创建对象的几种方式
js中的几种创建对象的方式。一共有5种:一 , 工厂方式var lev = function() { return this.age;};function Parent() { var child = new Object(); child.name = '小芳'; child.age = 30; ...
分类:Web开发   时间:2015-06-10 19:14:34    收藏:0  评论:0  赞:0  阅读:409
c++11 size 和 capacity 区别
size() --返回目前存在的元素数。即: 元素个数capacity() --返回容器能存储 数据的个数。 即:容器容量reserve() --设置 capacity 大小resize() --设置 size ,重新指定有效元素的个数 ,区别与reserve()指定 容量的大小 看图:当创建空容....
分类:编程语言   时间:2015-06-10 19:14:14    收藏:0  评论:0  赞:0  阅读:225
.aspx.cs传值与取值
1:.aspx中post传值$.post("ABP_ExchangeRatelz.aspx", { option: "isdelete", Ori_Currency: Ori_Currency, Year_Month: Year_Month, Region: Region, time: new Da...
分类:Web开发   时间:2015-06-10 19:14:04    收藏:0  评论:0  赞:0  阅读:452
html DIV元素左右偏移方法,偏移后默认宽度仍浏览器宽度一致
设置如下CSS属性:position: relative;left: 200px;上面属性表示该DIV向右偏移200px,效果如下:
分类:Web开发   时间:2015-06-10 19:13:44    收藏:0  评论:0  赞:0  阅读:290
POJ 2080
import java.util.*;public class Main { public static void main(String args[]){ Scanner cin=new Scanner(System...
分类:其他   时间:2015-06-10 19:13:34    收藏:0  评论:0  赞:0  阅读:145
PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone
在用PHP5.3以上的PHP版本时,只要是涉及时间的会报一个"PHP Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to us...
分类:Web开发   时间:2015-06-10 19:13:24    收藏:0  评论:0  赞:0  阅读:212
windows phone 8.0 app 移植到windows10 app 页面类
phone:PhoneApplicationPage 全部替换为Pagephone:WebBrowser 全部替换为 WebViewIsScriptEnabled="True" 空格SupportedOrientations="Portrait" 空格Orientatio...
分类:移动平台   时间:2015-06-10 19:13:14    收藏:0  评论:0  赞:0  阅读:211
POJ 2075
#include#include#include#include#include#define MAXN 500#define inf 1000000000typedef double elem_t;using namespace std;double _m[MAXN][MAXN];int pre[...
分类:其他   时间:2015-06-10 19:13:04    收藏:0  评论:0  赞:0  阅读:134
快速幂运算
快速幂运算顾名思义,就是快速算某个数的多少次幂。其时间复杂度为 O(log?N), 与朴素的O(N)相比效率有了极大的提高。以下以求a的b次方来介绍把b转换成二进制数。该二进制数第i位的权为例如11的二进制是101111 = 2³×1 + 2²×0 + 2¹×1 + 2º×1因此,我们将a¹¹转化为...
分类:其他   时间:2015-06-10 19:12:54    收藏:0  评论:0  赞:0  阅读:74
POJ 2105
#include #include #include using namespace std;int main(){ //freopen("acm.acm","r",stdin); int num; int i; int j; int tem; int index...
分类:其他   时间:2015-06-10 19:12:44    收藏:0  评论:0  赞:0  阅读:207
CAD控件:控件图形数据库概要说明
1.1 控件数据库 31.1.1 数据库概述 31.2 数据库初始化 41.3 创建和组织数据库 41.4 保存数据库 41.5 插入一个数据库 41.6 设置当前数据库值 51.6.1 数据库颜色值 51.6.2 数据库线型值 51.6.3 数据库线型比例值 51.6.4 数据库层值 51.7 打...
分类:数据库技术   时间:2015-06-10 19:12:34    收藏:0  评论:0  赞:0  阅读:218
javascript 全选 反选 js代码
分类:编程语言   时间:2015-06-10 19:12:24    收藏:0  评论:0  赞:0  阅读:210
POJ 2215
1 //package j; 2 import java.util.*; 3 public class Main { 4 public static void main(String args[]){ 5 int r; 6 int c; 7 int r1; ...
分类:其他   时间:2015-06-10 19:12:14    收藏:0  评论:0  赞:0  阅读:170
c 查找 子字符串
#include int Search(char *s1, char *s2) { char *temp = s1; int count = 0; while(*temp != '\0') { char *tmp1 = temp; char *t1 = s2; while(*t1 != '\0...
分类:其他   时间:2015-06-10 19:12:04    收藏:0  评论:0  赞:0  阅读:147
php的传值和传址
有些情况下,可能希望在函数体内对参数的修改在函数体外也能反映; 使用引用传递参数要在参数前加上&符号;例子:在加上&符的时候输出的是10,而没加&符的时候是5
分类:Web开发   时间:2015-06-10 19:11:54    收藏:0  评论:0  赞:0  阅读:195
MYSQL数据库学习八 触发器的操作
8.1 触发器 在表发生更改时,自动进行一些处理。例如,学生表中每增加一条关于学生记录时,学生的总数就必须同时改变,同时需要检查电话号码格式是否正确,地址缩写是否正确。 以下语句会激活触发器:DELETE语句。INSERT语句。UPDATE语句。 MySQL 5开始支持触发器数据库对象。8.2...
分类:数据库技术   时间:2015-06-10 19:11:44    收藏:0  评论:0  赞:0  阅读:266
栈和堆的详细介绍
尽管在.NET framework下我们并不需要担心内存管理和垃圾回收(Garbage Collection),但是我们还是应该了解它们,以优化我们的应用程序。同时,还需要具备一些基础的内存管理工作机制的知识,这样能够有助于解释我们 日常程序编写中的变量的行为。在本文中我将讲解栈和堆的基本知识,变量...
分类:其他   时间:2015-06-10 19:11:34    收藏:0  评论:0  赞:0  阅读:193
1921条   上一页 1 ... 22 23 24 25 26 ... 97 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!