新建一个Android工程。
一 布局
先看效果图:
打开main.xml修改内容如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_par...
分类:
移动开发 时间:
2015-03-03 20:42:33
阅读次数:
219
C#读写Excel的方式有好几种,具体参考文章: http://www.cnblogs.com/huipengkankan/archive/2011/07/28/2120407.html 昨天大致研究了一下,项目中使用LibXl库进行读写,官方网址:http://libxl.com/home.htm...
分类:
其他好文 时间:
2015-03-03 11:32:49
阅读次数:
114
In Haskell. Two points: 1. pruning 2. Int suffers from overflow. Integer it is.getPowerSum :: Integer -> [Integer] -> Integer -> IntegergetPowerSum _ ...
分类:
其他好文 时间:
2015-03-03 06:20:33
阅读次数:
128
一、简述二、使用步骤DataInputStream:引入相关的类构造数据输入流的对象(如:FileInputStream,BufferedWriter包装后读取文件等)读取二进制文件的数据关闭数据输入流DataOutputStream:引入相关的类构造数据输出流的对象(如:FileOputStrea...
分类:
编程语言 时间:
2015-03-02 06:09:25
阅读次数:
249
5.10 修饰符的适用范围strictfp关键字的含义是FP-strict,也就是精确浮点的意思,在java虚拟机进行浮点运算时,使用strictfp可以让浮点运算更加精确。
native主要用于修饰一个方法,它类似于一个抽象方法,与抽象方法不同的是:native方法通常采用C语言来实现,如果某个方法需要利用平台相关特性,或者访问系统硬件,则可以使用native修饰该方法,再把该方法交给C去实现,...
分类:
其他好文 时间:
2015-03-01 11:58:25
阅读次数:
137
读写文件一般读写新建copyFile.jsvar fs = require("fs");
function copyFile(src,dest){
varfile = fs.readFileSync(src);//根据文件路劲读取文件
fs.writeFileSync(dest,file);//将内容写入文件
}
function main(...
分类:
Web程序 时间:
2015-02-28 21:40:39
阅读次数:
166
1 #include 2 #include 3 4 int main(int argc, char *argv[]) 5 { 6 if(argc == 2)//将文件中的打印到标准输出 7 { 8 FILE *fp; 9 if( !(fp = ...
分类:
编程语言 时间:
2015-02-28 20:09:41
阅读次数:
441
6、HDFS API详解 Hadoop中关于文件操作类疾病上全部在“org.apache.hadoop.fs”包中,这些API能够支持的操作包含:打开文件、读写文件、删除文件等。 Hadoop类库中最终面...
分类:
其他好文 时间:
2015-02-27 21:28:45
阅读次数:
263
/// /// 将output.config内容传到app.config /// string ReadString; //两个地址 string path1 = @"D:\wcf\xml文件读写\Xml_WirteOrR...
system()这个函数就不说了,不能读取返回值。#includeint main(){ FILE *fp; char buffer[1024]={0}; fp=popen("ssh root@192.168.1.93 \'ls /\'","r"); ...
分类:
编程语言 时间:
2015-02-27 15:04:14
阅读次数:
180