码迷,mamicode.com
首页 > 2015年05月12日 > 全部分享
106 浏览器判断 IE firefox chrome safari opara
//浏览器检测 (function(){     window.sys={};     var ua=navigator.userAgent.toLowerCase();//获取炉冷却信息字符串     var s;//浏览器信息数组,浏览器名称+版本号     //document.write(ua);//不同浏览器将输出一下浏览器信息    /*     document.wri...
分类:其他好文   时间:2015-05-12 09:27:32    阅读次数:104
逐行读写字符串数组到文本txt文件
C语言方式将字符串数组写入到txt文件中有五个文件名存储在字符串数组中,欲将其逐行写入到txt文件中保存到磁盘上。利用fprintf对文件进行格式化输出void Filewrite() { FILE *fp; char * name[] = {"filen1", "file2", "file3", "file4", "file4"}; fp = fopen("E://test...
分类:编程语言   时间:2015-05-12 09:27:19    阅读次数:143
javascript回调函数(模式)原理和示例深入分析
广大网友读懂了我之前论述的javascript原理这篇文章很容易懂 回调函数来自一种著名的编程范式——函数式编程,在基本层面上,函数式编程指定的了函数的参数。函数式编程虽然现在的使用范围变小了,但它一直被“专业的聪明的”程序员看作是一种难懂的技术,以前是这样,未来也将是如此。 幸运的是,函数式编程已经被阐述的像你我这样的一般人也能理解和使用。函数式编程最主要的技术之一就是回调函数,你很...
分类:编程语言   时间:2015-05-12 09:28:55    阅读次数:191
【C语言】可变参数列表。
C语言...
分类:编程语言   时间:2015-05-12 09:29:39    阅读次数:134
顺序队列的实现
顺序队列的实现,写出给大家分享一下,我不习惯写什么心得,直接贴代码出来供大家分享,共同进步。 1:头文件:Queue.h #pragma once #include #include #define ElemType int #define SizeFull 20 typedef struct Queue { ElemType *data; int sizefull; int fro...
分类:其他好文   时间:2015-05-12 09:26:32    阅读次数:92
HDU 5078 Osu!
题目链接:hdu 5078 Osu! 题面: Osu! Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 1058    Accepted Submission(s): 550 Special Judg...
分类:其他好文   时间:2015-05-12 09:28:50    阅读次数:176
(C语言)可变参数列表
C函数要在程序中用到以下这些宏: void va_start( va_list arg_ptr, prev_param ); type va_arg( va_list arg_ptr, type ); void va_end( va_list arg_ptr );   va_list:用来保存宏va_start、va_arg和va_end所需信息的一种类型。为了访问变长参...
分类:编程语言   时间:2015-05-12 09:27:33    阅读次数:133
发送邮件时,报postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by
Linux6.5发送邮件时,异常postdrop: warning: inet_protocols: IPv6 support is disabled: Address family not supported by 报错信息:  sendmail: warning: inet_protocols: IPv6 support is disabled: Address famil...
分类:Web程序   时间:2015-05-12 09:26:56    阅读次数:310
LeetCode 190 :Reverse Bits
Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 001110010...
分类:其他好文   时间:2015-05-12 09:26:02    阅读次数:126
hdu 1285 确定比赛名次(拓扑排序)
确定比赛名次 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 14854    Accepted Submission(s): 5929 Problem Description 有N个比赛队(1   Input...
分类:编程语言   时间:2015-05-12 09:26:39    阅读次数:138
uva_11374_Airport Express(最短路+枚举)
Airport Express In a small city called Iokh, a train service, Airport-Express, takes residents to the airport more quickly than other transports. There are two types of trains in Airport-Express, t...
分类:其他好文   时间:2015-05-12 09:25:59    阅读次数:95
C++解析JSON(jsonCpp)
C++解析JSON(jsonCpp)JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式。它基于JavaScript(Standard ECMA-262 3rd Edition - December 1999)的一个子集。 JSON采用完全独立于语言的文本格式,但是也使用了类似于C语言家族的习惯(包括C, C++, C#, Java, JavaScript,...
分类:编程语言   时间:2015-05-12 09:25:54    阅读次数:274
POJ -3253 优先队列 STL
Fence Repair Time Limit: 2000MS   Memory Limit: 65536K Total Submissions: 29658   Accepted: 9643 Description Farmer John wants to repair a small length of the fence aroun...
分类:其他好文   时间:2015-05-12 09:28:03    阅读次数:90
弹幕效果
简单弹幕实现...
分类:其他好文   时间:2015-05-12 09:24:48    阅读次数:82
解题报告 之 POJ2891 Strange Way to Express Integers
POJ2891 ,Strange Way to Express Integers,线性同余方程组,数论 Elina is reading a book written by Rujia Liu, which introduces a strange way to express non-negative integers. The way is described as following: Choose k different positive integers a1, a2, …, ak. For so...
分类:其他好文   时间:2015-05-12 09:27:12    阅读次数:183
POJ - 1703 - Find them, Catch them (并查集)
题目传送:Find them, Catch them 思路:用一个关系数组记录当前结点与其父亲的关系,0表示同类,1表示不同类 AC代码: #include #include #include #include #include #include #include #include #include #include #include #include ...
分类:其他好文   时间:2015-05-12 09:24:32    阅读次数:85
java——UDP发送和接收数据
package com.socket;import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.SocketException; import java.net.UnknownHostE...
分类:编程语言   时间:2015-05-12 09:27:27    阅读次数:189
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!