码迷,mamicode.com
首页 >  
搜索关键字:new 与malloc的区别    ( 74660个结果
判断日期之差
function checkTime(){ var dateInp=$("#dateInp").val(); var day1=Date.parse(dateInp.replace(/-/g, "/")); var nowDate = new Date(); var date...
分类:其他好文   时间:2014-06-04 18:53:52    阅读次数:277
CSS技巧二
元素缩写font中属性的放置顺序是严格遵守的,否则不会生效。Font:font-stylefont-weightfont-sizefont-familiy;(注:font-size和font-family是font的必须属性,并且font-size一定要放在font-family的前面)Margin...
分类:Web程序   时间:2014-06-03 14:04:28    阅读次数:375
CSS清除浮动
空标签方式:(每次都要添加空div).clearfix{clear:both;}BFC方式:(局限性:不能有谈层).clearfix{*zoom:1;overflow:hidden;}伪元素方式:.clearfix{*zoom:1;}.clearfix:after{display:block;cle...
分类:Web程序   时间:2014-06-03 13:54:02    阅读次数:305
ruby正则表达
1、Ruby中正则表达式的写法主要有三种在//之间,要进行转义在%r{}内,不用进行转义Regexp.new()内,不用进行转义/mm\/dd/,Regexp.new(“mm/dd”),%r{mm/dd}三者效果相同,实质都是新建了一个Regexp的类。2、匹配的两种方法=~肯定匹配, !~否定匹配...
分类:其他好文   时间:2014-06-03 13:46:13    阅读次数:407
串 --- 匹配
All in AllTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 27295Accepted: 11162DescriptionYou have devised a new encryption technique which en...
分类:其他好文   时间:2014-06-03 12:03:57    阅读次数:233
IO流
System.IO.FileStream files = new System.IO.FileStream(ofdFile.FileName, System.IO.FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.ReadWr...
分类:其他好文   时间:2014-06-03 09:49:51    阅读次数:218
android 127.0.0.1/localhost connection refused,在模拟器上应该用10.0.2.2访问你的电脑本机
调试中通过android simulator模拟器链接localhost或者127.0.0.1,因为我在电脑上面建立了apache,我的代码大概就是URL url = new URL(urlString); URLConnection urlconn = url.openConnection();但...
分类:移动开发   时间:2014-05-30 23:23:52    阅读次数:314
Java日期转换SimpleDateFormat格式大全(转)
24小时制时间显示:public class Datetime { public static void main(String args[]){ java.util.Date current=new java.util.Date(); java.text....
分类:编程语言   时间:2014-05-30 20:21:37    阅读次数:357
Distinct Subsequences
Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig...
分类:其他好文   时间:2014-05-30 15:58:40    阅读次数:187
C++虚函数示例
和Java不同,CDerive derive语句可以直接生成对象,不需要new关键字重载虚函数才可以用父类引用调用子类对象,重载普通函数没有效果#include#includeusing namespace std;class CBase{public : void fun() { ...
分类:编程语言   时间:2014-05-30 14:46:07    阅读次数:247
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!