关于c4droidjava的信息

博主:adminadmin 2022-11-28 07:11:06 54

本篇文章给大家谈谈c4droidjava,以及对应的知识点,希望对各位有所帮助,不要忘了收藏本站喔。

本文目录一览:

用C4droid这个软件,是要精通C语言还是Java语言?

c4droid是一个c/c++编程开发的ide

与java是无关的

当然你要是愿意也可以使用它来写java

因为对于任何语言来说单纯只是写的话

只需要有一个编辑器就可以了

而c4droid显然是集成了一个编辑器的

c4droid是android的一个app

使用的话并不需要精通c或者c++

任何人都可以使用

包括会或者不会

懂或者不懂c/c++

因为它本身只是一个app

如何使用它就要看使用它的主人了

但就编程语言来说

它是在android下编写c/c++的IDE

C4droid可以编译java吗

可以的。

我这有一个类似的,你修改一下就能用了

package xlhu.ccbdj2013;

import java.io.BufferedReader;

import java.io.BufferedWriter;

import java.io.File;

import java.io.FileInputStream;

import java.io.FileOutputStream;

import java.io.InputStreamReader;

import java.io.OutputStreamWriter;

/**

 * 

 * 生成全量数据、部分数据,数据格式为:证件号码,客户姓名,联系电话,交易笔数

 * 源文件:生产脚本每周一晚上执行,以" "为分隔符

 * 原文本文件以utf-8格式编码,新文件以gbk编码

 *

 */

public class FileSimple {

    /**

* 全量数据

* @throws Exception

*/

    private static File file = new File("F:\\feiqiu\\20140506.txt");

    private static String date = "0506";

    private static File foutPath = new File("F:\\Work\\2014每周数据\\"+date);

private static void runAll() throws Exception{

if(!foutPath.exists()){

foutPath.mkdir();

}

File fout = new File(foutPath,"全量数据"+date+".txt");

if(!fout.exists()){

fout.createNewFile();

}

String strLine = null;

if(!file.exists()){

System.out.println("源文件不存在!");

return;

}else{

String lineRead = null;

BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));

BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fout),"GBK"));

long allLine = 1;

while((lineRead = br.readLine()) != null){

strLine = lineRead.replaceAll(" ", ",");

strLine = strLine+"\n";

bw.write(strLine);

allLine++;

}

bw.close();

br.close();

System.out.println("生成全量数据总计行数:"+allLine);

}

}

/**

* 部分数据

* @throws Exception

*/

private static void runSome() throws Exception{

if(!foutPath.exists()){

foutPath.mkdir();

}

File fout = new File(foutPath,"部分数据"+date+".txt");

if(!fout.exists()){

fout.createNewFile();

}

String strLine = null;

if(!file.exists()){

System.out.println("源文件不存在!");

return;

}else{

String lineRead = null;

BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));

BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(fout),"GBK"));

long allLine = 1;

while((lineRead = br.readLine()) != null){

strLine = lineRead.replaceAll(" ", ",");

if(strLine.charAt(strLine.length()-1) == '0'){

continue;

}else{

strLine = strLine+"\n";

bw.write(strLine);

allLine++;

}

}

bw.close();

br.close();

System.out.println("生成部分数据总计行数:"+allLine);

}

}

public static void main(String[] args) {

long start,end =0; 

   

try {

start = System.currentTimeMillis();

//全量数据

runAll();

//部分数据

runSome();

end = System.currentTimeMillis();

System.out.println("用时:"+(end-start)+"ms");

} catch (Exception e) {

e.printStackTrace();

}

}

}

怎麽利用c4droid写一个安卓软件,求指教

c4droid这个软件编程的是c语言,Android上的开发目前只能用Java和C#,C语言无法实现。

C#目前只能是MonoDevelop For Android下才能开发Android程序,而且要在手机上安装.NetFrameWork。所以你用c4droid编程的是c语言,可以在电脑上使用。

关于c4droidjava和的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。

The End

发布于:2022-11-28,除非注明,否则均为首码项目网原创文章,转载请注明出处。