Fun one. A matter of string generation by given rules. I know it can be much shorter.. but i'm lazy to do that. ...
分类:
其他好文 时间:
2017-01-14 14:52:42
阅读次数:
279
创建OptPool.jsvarmysql=require(‘mysql‘);functionOptPool(){ this.flag=true; this.pool=mysql.createPool({ host:‘localhost‘, user:‘root‘, password:‘‘, database:‘mtc‘, port:‘3306‘ }); this.getPool=function(){ if(this.flag){ this.pool.on(‘connection‘,fun..
分类:
数据库 时间:
2017-01-13 16:13:00
阅读次数:
340
1 document.getElementsByName("name") 在Ie低版本,360普通版本,以及火狐低版本不支持。 2 element.innerText 在低版本的火狐中不支持,处理方法如下。 var tDiv = document.createElement("span"); fun ...
分类:
Web程序 时间:
2017-01-12 18:35:08
阅读次数:
329
//Func用法 public static class FuncDemo{ public static void TestFunc(){ List usList = Five.GetUserList(); //Select是Func的委托 //public delegate TResult Fun... ...
分类:
其他好文 时间:
2017-01-12 12:57:18
阅读次数:
141
#include<stdio.h>#include<stdlib.h>//返回低于平均分的人数,用数组存储这些分数int fun(int a[],int b[]){ int i; int m; int j; int sum=0; float aver; for(i=0;i<10;i++) { sum ...
分类:
其他好文 时间:
2017-01-10 09:26:37
阅读次数:
158
首先我们的第一步当然是将tuple解包。tuple提供了一个get函数来获取第N个元素。例如: get<1>(make_tuple(...)); 要将一个tuple全部拆解,就可以使用通过多次调用这个函数来进行解析,例如: auto tup = make_tuple(..........); fun ...
分类:
其他好文 时间:
2017-01-08 09:55:10
阅读次数:
163
递归二字顾名思义就是:递过去,归回来、所以我索性叫它做有借有还吧。 下面的例子由c而来: public class Main { public static void main(String[] args) { fun(1); } public static void fun(int n) { Sy ...
分类:
编程语言 时间:
2017-01-07 22:55:25
阅读次数:
342
vim 8.0 查看当前vim环境 :scriptname 查看加载的配置文件 :verbose map [key_name] 查看key_name按键映射 :verbose set 查看所有set,如set paste :verbose history 查看历史命令 :function [fun- ...
分类:
系统相关 时间:
2017-01-07 16:14:00
阅读次数:
257
The follow-up question is fun: "Could you do it in one-pass, using only O(1) extra memory and without modifying the value of the board?" When we meet ...
分类:
其他好文 时间:
2017-01-06 08:02:17
阅读次数:
254
1.extern "C" void func(){...} extern可以置于变量或者函数前,以标示变量或者函数的定义在别的文件中,提示编译器遇到此变量和函数时在其他模块中寻找其定义。此外extern也可用来进行链接指定。告诉编译器在编译fun这个函数名时按着C的规则去翻译相应的函数名而不是C++ ...
分类:
其他好文 时间:
2017-01-05 21:37:04
阅读次数:
240