第一种:选“文件”,然后选“C/C++ Source File”。
第二种:选“工程”,然后选“Win32 Console Application”,完成后,然后再按第一种方式建立文件。
if (entity != null) {final InputStream instream = entity.getContent()
try {
final StringBuilder sb = new StringBuilder()
final char[] tmp = new char[1024]
final Reader reader = new InputStreamReader(instream,encoding)
int l
while ((l = reader.read(tmp)) != -1) {
sb.append(tmp, 0, l)
}
body = sb.toString()
} finally {
instream.close()
EntityUtils.consume(entity)
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)