码迷,mamicode.com
首页 >  
搜索关键字:io    ( 172858个结果
File 的基本操作
package xinhuiji_day07;import java.io.File;import java.io.IOException;public class FileTest { /** * @param args */ public static void main(String[] .....
分类:其他好文   时间:2014-07-18 14:25:42    阅读次数:166
matlab中函数的句柄是什么意思?有什么作用?
比定义f(x)=x^2写f=@(x)(x.^2)其@(x)(x.^2)匿名函数第括号面自变量第二括号面表达式@函数指针f=@(x)(x.^2)表示匿名函数@(x)(x.^2)赋值给f于f表示该函数于f(2)=2.^2=4;f(1:3)=[1:3].^2=[1 4 9]等等定义匿名函数调用别匿名函数比...
分类:其他好文   时间:2014-07-18 14:25:11    阅读次数:943
二分法习题讲解
#include using namespace std;int num[]={3,5,7,9,10,12,15,20,25,30};//10个数int main(){ int x; while(cin>>x) { int L,R,mid; L=0;R=...
分类:其他好文   时间:2014-07-18 14:24:25    阅读次数:314
java Field 二三事
java在反射时候经常用到了 Field 类。 我认为代码是最好的解释,直接上代码。 首先,用到了一个bean类,源代码如下:packagecom.ncs;publicclassPoint{privateintx;publicinty;publicPoint(intx,inty){super...
分类:编程语言   时间:2014-07-18 14:21:53    阅读次数:212
违章查询免费api接口代码
可以根据城市+车牌号+发动机号查询违章信息列表; 违章实体类 package org.wx.xhelper.model; /** * 违章实体类 * @author wangxw * @version 1.0 * @date Jul 11, 2014 3:25:34 PM */ public class ViolRegu { // 违章时间 privat...
分类:Windows程序   时间:2014-07-18 11:33:47    阅读次数:1051
Poj 1144 Zoj 1311 求割点 模板
写这个就是为了手写一份好用的求割点模板: 吐槽下,题目中的 Each of the next at most N lines contains the number of a place followed by the numbers of some places to which there is a direct line from this place.  这个at most是不可信的,应...
分类:其他好文   时间:2014-07-18 11:29:34    阅读次数:232
IE,火狐,谷歌浏览器下js判断滚动条是否已拉到页面最底部
E/FF/Chrome下document.documentElement和document.body的 scrollHeight/scrollTop/clientHeight 以及判断滚动条是否已拉到页面最底部DTD已声明IEdocument.documentElement.scrollHeight...
分类:Web程序   时间:2014-07-18 10:39:51    阅读次数:265
poj1107
1#include2#include3chars[85],r[85];4intf[85],a[3],num[3],len;5inttransfer(intc,intk)6{7inti,t=0;8i=c;9while(t!=k)10{11i++;12if(i>len-1)13i=0;14if(f[i]...
分类:其他好文   时间:2014-07-18 10:39:31    阅读次数:253
常用linux 命令和.bashrc
alias ll='ls -alF'一:ls -a --all : do not ignore entries starting with . -A , --almost-all : do not list implied . and .. -l : use a long listing f...
分类:系统相关   时间:2014-07-18 10:36:44    阅读次数:314
HTML5每日一练之figure新标签的应用
igure元素是一种元素的组合,可带有标题(可选)。figure标签用来表示网页上一块独立的内容,将其从网页上移除后不会对网页上的其他内容产生影响。figure所表示的内容可以是图片、统计图或代码示例。figure用友一个子标签——figcaption标签。注意:一个figure元素内最多只允许放置...
分类:Web程序   时间:2014-07-18 10:35:46    阅读次数:356
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!