很久前写的一个简单邮件发送类分享给大家: 1 using System; 2 using
System.Data; 3 using System.Configuration; 4 using System.Web; 5 using
System.Web.Security; 6 using Syste...
分类:
Web程序 时间:
2014-05-15 14:35:44
阅读次数:
387
try catch finally 语句中
如果try中有返回语句,如果在fianlly代码块中有对这个值修改的话,并不影响其放回值public class Test { public static
void main(String[] string){ System.out.p...
分类:
其他好文 时间:
2014-05-15 10:38:40
阅读次数:
209
1. HLSHLS是为移动设备开发的基于HTTP的流媒体解决方案。2.
原理:将视频或流切分成小片(TS), 并建立索引(M3U8).支持视频流:H.264; 音频流:AAC3.
M3U8文件解析M3U8文件在很多地方也叫做Playlist file。一个简单的例子:#EXTM3U#EXT-X-TA...
分类:
其他好文 时间:
2014-05-15 10:27:37
阅读次数:
445
public class Test { public static void
main(String[] string){ int i = Integer.MAX_VALUE; System.out.println(i); ...
分类:
其他好文 时间:
2014-05-15 10:13:33
阅读次数:
224
public class Test{ public static void
main(String args[]){ int i[]= new int[1]; System.out.println(i.equals(0));
}}//false...
分类:
其他好文 时间:
2014-05-15 10:03:08
阅读次数:
216
public class Test { public static void
main(String[] string){ int[] i = new int[10];
System.out.println(i.equals(null)); }...
分类:
其他好文 时间:
2014-05-15 09:54:00
阅读次数:
250
String s="32"; int i=Integer.parseInt(s);
System.out.println(i);这样没有问题 String s="3g"; int i=Integer.parseInt(s); Sy...
分类:
其他好文 时间:
2014-05-15 09:23:50
阅读次数:
234
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace MegreSort{ class Program { static void
Main(s...
分类:
其他好文 时间:
2014-05-15 09:21:59
阅读次数:
171
绘制图形如下:
程序代码:
需要重新定义父类虚函数draw()
1、在HelloWorldScene.h头文件加入:
virtual void draw();
2、定义实现:
void HelloWorld::draw()
{
//add your code....
CHECK_GL_ERROR_DEBUG();
CCSize size = CC...
分类:
其他好文 时间:
2014-05-15 09:10:32
阅读次数:
285
做乙方的,免不了一个月去客户那里巡检一次。无非就是翻翻日志,排排错啥的。直接说场景需求吧:每月一次翻日志(三十天内),范围是application和system(也许更多),事件类型只看Error和Warning。多日志名环境,使用WMIobject来干,-filter后面接的语句是WQL标准,运算符按..
分类:
其他好文 时间:
2014-05-15 08:52:42
阅读次数:
1243