/*极水的题。。。*/#include"iostream"#include"stdio.h"#include"stdlib.h"#include"algorithm"#include"string.h"using namespace std;char s[1005];int main(){ w...
分类:
其他好文 时间:
2015-01-24 21:18:38
阅读次数:
118
今天查着用了用String类里的几个方法,分享下代码题目要求:统计一个子串在指定字符串中出现的次数( 提示java字串出现了6次) 1 public class SearchSameString { 2 3 public static void main(String[] args) { ...
分类:
编程语言 时间:
2015-01-24 21:12:13
阅读次数:
396
一. 实现效果图如下 Android 中的下拉框为Spinner 组件,其效果图如上图片二. 实现代码 布局代码如下 设置数据源public class MainActivity extends Activity { private String[] items=new ...
分类:
移动开发 时间:
2015-01-24 21:12:01
阅读次数:
124
C# PlaceholderThere are 2 ways to output multiple characters in C#.One:static void Main(){ string c=Console.ReadLine(); string d=Console.ReadLine();Co...
分类:
其他好文 时间:
2015-01-24 19:57:54
阅读次数:
250
usingSystem;
usingSystem.Collections.Generic;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Threading.Tasks;
usingSystem.Threading;
namespaceConsoleApplication5
{
classProgram
{
staticvoidMain(string[]args)
{
inta;
intb;
ThreadPool.GetMaxThreads(outa,outb..
分类:
编程语言 时间:
2015-01-24 18:52:09
阅读次数:
196
public class Person {
public String name = "刘彦亮";
public int age = 27;
private String sex = "男";
private static int code = 10;
}
{CSDN:CODE:588063}...
分类:
编程语言 时间:
2015-01-24 18:47:51
阅读次数:
226
索引escape(@string); // 通过 URL-encoding 编码字符串e(@string); // 对字符串转义%(@string, values…); // 格式化字符串unit(@dimension, [@unit: ""]); // 移除或替换属性值的单位color(@stri...
分类:
其他好文 时间:
2015-01-24 18:36:52
阅读次数:
326
url: 要求为String类型的参数,(默认为当前页地址)发送请求的地址。type: 要求为String类型的参数,请求方式(post或get)默认为get。注意其他http请求方法,例如put和 delete也可以使用,但仅部分浏览器支持。timeout: 要求为Number类型的参数,设置请求...
分类:
Web程序 时间:
2015-01-24 17:16:43
阅读次数:
155
{CSDN:CODE:587936}
注意到反射main方法跟普通方法有区别:
调用invoke方法不能简单传入一个String数组,需要在外面再包一层Object数组
invoke(null,
new Object[]{ new String[]{"1","2"}});
这是因为jdk设计的问题,jdk1.4版本跟1.5以后的版本设计有区别,如下...
分类:
编程语言 时间:
2015-01-24 15:56:56
阅读次数:
144