一.printArray();1.字面意思:打印 阵列;2.在java中是 直接引用printarray()方法;3.在直接引用时,首先要创建方法private static void printArray();4.printArray作为java语言中的一个方法是为了,简化程序,但不可滥用。二.有...
分类:
其他好文 时间:
2016-01-10 21:16:44
阅读次数:
174
1.统计产生对象的数量。 class Book{ private String title ; private static int num = 0 ; public Book (String book){ num ++ ; System.out.println("This is the num"....
分类:
其他好文 时间:
2016-01-10 21:15:44
阅读次数:
202
#include#include char str[10];int index=0;void E(); //E->TX;void X(); //X->+TX|-TX| evoid T(); //T->FYvoid Y(); ...
分类:
其他好文 时间:
2016-01-10 21:13:08
阅读次数:
185
Storm架构如下图所示:1、主控节点(Master Node) 运行Storm nimbus后台服务的节点(Nimbus),它是storm系统的中心,负责接收用户提交的作业(如同spark submit一样 即为jar包形式保存的topology代码),通过Zookeeper向每个工作节点分配处....
分类:
其他好文 时间:
2016-01-10 21:15:26
阅读次数:
192
Although sessions are used to create temporary destinations, this is only for convenience. Their scope is actually the entire connection. Their lifeti...
分类:
其他好文 时间:
2016-01-10 21:14:48
阅读次数:
260
Picnic Cows Time Limit: 8000/4000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) T...
分类:
其他好文 时间:
2016-01-10 21:14:55
阅读次数:
388
Given a pattern and a string str, find if str follows the same pattern.Here follow means a full match, such that there is a bijection between a letter...
分类:
其他好文 时间:
2016-01-10 21:11:48
阅读次数:
188
一 NSString不可变字符串 1.字符串的创建 //创建字符串常量 NSString *string1 = @"hello"; string1 = @"hello word"; //alloc创建一个字符串 NSString *string2 = [[NSString alloc] i...
分类:
其他好文 时间:
2016-01-10 21:12:23
阅读次数:
170
using System;using System.Drawing;using System.Drawing.Imaging;using System.Runtime.InteropServices;namespace ConsoleApplication1{ class ImageUtil ...
分类:
其他好文 时间:
2016-01-10 21:12:30
阅读次数:
201
题目要求是对几个字符串进行分析,得到一个最优的字符串,使它满足与要求的字符串不同的字符之和最小。如果有多种解,则输出字典序最小的。注意:字符串的结束时 \0 一定要加上 1 #include 2 #include 3 #include 4 using namespace std; 5 6 c...
分类:
其他好文 时间:
2016-01-10 21:09:40
阅读次数:
218
翻看该方法的参考文档,苹果对retainCount方法的描述如下:retainCountDo not use this method. (required)- (NSUInteger)retainCountReturn ValueThe receiver’s reference count.Spec...
分类:
其他好文 时间:
2016-01-10 21:09:30
阅读次数:
289
使用兼容ie6 ie7 ie8 FF的text-overflow:ellipsis超出文本显示省略号来代替截取函数更有利于seo,如果使用截取函数,源代码中的标题是显示不完整的,即便是在title属性中使用了显示完整标题,也不如完整的标题文字连接。这个方法使得两者兼得,既能显示完整标题又对搜索引擎友...
分类:
其他好文 时间:
2016-01-10 21:11:01
阅读次数:
203
1 import java.util.Scanner; 2 3 4 public class KongZhitai { 5 6 7 public static void main(String[] args) { 8 // TODO 自动生成的方法存根 9 ...
分类:
其他好文 时间:
2016-01-10 21:08:33
阅读次数:
289
修改IIS_schema.xml文件首先要获得这个文件的控制权,进入目录C:\Windows\System32\inetsrv\config\schema,修改IIS_schema.xml权限,右键属性——》安全;选择User,点击“高级”进行权限编辑。选择选项卡“所有者”再点击“编辑”。选择adm...
分类:
其他好文 时间:
2016-01-10 21:07:18
阅读次数:
714
1 package com.bawei.day14_xmlpull; 2 3 import java.io.IOException; 4 import java.io.InputStream; 5 import java.util.ArrayList; 6 import java.u...
分类:
其他好文 时间:
2016-01-10 20:03:23
阅读次数:
298
1.isMemberOfClass:作用:用于判断一个对象是否属于当前这个类 Person *rose = [[Person alloc] init]; if ([rose isMemberOfClass:[Person class]]) { NSLog(@"rose是person类创建...
分类:
其他好文 时间:
2016-01-10 20:02:55
阅读次数:
258
HDOJ:2161 1 #include 2 #include 3 const int MAXN = 16100; 4 bool prime[MAXN]; 5 void init(){ 6 memset(prime,true,sizeof(pr...
分类:
其他好文 时间:
2016-01-10 20:02:12
阅读次数:
229