import java.io.*;class hello{ public static void main(String[] args) { System.out.println(File.separator); System.out.println(File.pa...
分类:
编程语言 时间:
2015-05-04 23:35:01
阅读次数:
222
//String[]command={"df","-h","/"};//String[]command={"df"};//String[]command={"ls"};String[]command={"ls","-s"};StringBuildercmdReturn=newStringBuilder();ProcessBuilderprocessBuilder=newProcessBuilder(command);Processprocess=ProcessBuilder.start();InputStre..
分类:
系统相关 时间:
2015-05-04 22:20:14
阅读次数:
622
1563: Lexicography
Time Limit: 1 Sec Memory Limit:
128 MB
Submit: 342 Solved: 111
[Submit][Status][Web
Board]
Description
An anagram of a string is any string that can be formed using the...
分类:
其他好文 时间:
2015-05-04 22:18:39
阅读次数:
128
#include
#include
using namespace std;
class Sd
{
public:
string name;
static string teacher;
static int room;
Sd(const string & n):name(n){}
void show(){cout<<"我是"<<name<<"在"<<room<<"听"<<teacher...
分类:
编程语言 时间:
2015-05-04 22:17:52
阅读次数:
138
An anagram of a string is any string that can be formedusing the same letters as the original. (We consider the original string ananagram of itself as well.) For example, the string
ACM has thefollow...
分类:
其他好文 时间:
2015-05-04 22:13:13
阅读次数:
277
openFileOutput和openFileInput 获取手机内存中的文件而不是SD卡中的。
Context提供了两个方法来打开本应用程序的数据文件夹里的文件I/O流。
openFIleInput(String name):name文件对应的输入流
openFileOutput(String name,int mode):name文件对应的输出流
其中输出流中的第...
分类:
移动开发 时间:
2015-05-04 22:12:06
阅读次数:
191
JAVA代码如下:
static void testTextString() {
try {
String methodSayTo = "test";
// 定义服务
Service service = new Service();
Call call2 = (Call) service.createCall();
call2.setTargetEndpointAddress...
分类:
编程语言 时间:
2015-05-04 22:09:30
阅读次数:
129
Java调用c++的核心是变量类型的转换,java的int与c++中的int是一样的,转换比较简单。而想java中的String,处理就复杂一些。JNIEXPORT jstring JNICALL Java_com_dd_lib_ChineseToPinyin (JNIEnv *env, jclas...
分类:
编程语言 时间:
2015-05-04 22:02:35
阅读次数:
133
一、URL层次。 URL对象的创建。 1、public URL(String spec); URL urlbase=new URL("http://my.oschina.net/u/2308739/admin/new-blog.html"); 2、public URL(URL context,String spec); URL urlbase=new URL...
分类:
编程语言 时间:
2015-05-04 20:30:04
阅读次数:
938
n*m的图,其中有
‘.’:空地
‘X':墙
’S':起点
‘D':终点
’1‘-’9‘:表示该点有多少炸弹,炸弹可以炸墙
n,m范围只有8
优先队列里直接把当前的状态图压入,判断墙是否还存在,每个点可以走到多次
#include "stdio.h"
#include "string.h"
#include "queue"
using namespace std;
const i...
分类:
其他好文 时间:
2015-05-04 20:17:11
阅读次数:
123