Android switch 中 case expressions must be constant expressions 错误

摘要: 刚才导入android zxing 条码 的demo测试,发现出现如下错误case expressions must be constant expressions经检查,项目被设置成library了,在project.properties 文件中将android.library=true这一句删去,再clean一下项目即可运行 阅读全文
posted @ 2013-12-23 19:36 kunnet 阅读(843) 评论(0) 推荐(0) 编辑

netbeans 打包生成 jar

摘要: 文件页里找到build.xml文件,打开在</project>前加入以下代码保存之 <target name="package-for-store" depends="jar"> <!-- Change the value of this property to be the name of your JAR, minus the .jar extension. It should not have spaces. <property name="store.jar.name" value=&quo 阅读全文
posted @ 2013-02-19 17:46 kunnet 阅读(11392) 评论(0) 推荐(1) 编辑

__cdecl

摘要: __cdecl 转载自http://baike.baidu.com/view/1280676.htm几种函数调用方式 __cdecl 是C Declaration的缩写(declaration,声明),表示C语言默认的函数调用方法:所有参数从右到左依次入栈,这些参数由调用者清除,称为手动清栈。被调用函数不会要求调用者传递多少参数,调用者传递过多或者过少的参数,甚至完全不同的参数都不会产生编译阶段的错误。 _stdcall 是StandardCall的缩写,是C++的标准调用方式:所有参数从右到左依次入栈,如果是调用类成员的话,最后一个入栈的是this指针。这些堆栈中的参数由被调用的函数在返.. 阅读全文
posted @ 2012-08-03 13:09 kunnet 阅读(265) 评论(0) 推荐(0) 编辑

C语言中格式化输出,四舍五入类型问题

摘要: #include <stdio.h>int main(){ double a,b,c,x; printf("请输入三个数字:\n"); scanf("%lf,%lf,%lf",&a,&b,&c); x=(a+b+c)/3; printf("平均值x为double时,x=%.1lf\n",x); float y=(a+b+c)/3; printf("平均值y为float时,y=%.1f\n",y); return 0;}请输入三个数字:5.35,1,1平均值x为double时,x= 阅读全文
posted @ 2012-03-11 13:15 kunnet 阅读(1512) 评论(0) 推荐(0) 编辑

How to Change the Default Author in Windows Eclipse?

摘要: Some time we need to change the author name of the files we create by eclipse rather than the system user name.to do so:1- edit eclipse.ini file in the eclipse directory.2- add the following line after -vmargs line-Duser.name=your nameOr we can also change it from here(recommend):Window -> Prefer 阅读全文
posted @ 2012-01-01 23:37 kunnet 阅读(323) 评论(0) 推荐(0) 编辑

RHEL6 纯命令行文本界面下安装桌面

摘要: Copyright © 2011-2015 咖喱派 (kevin276@qq.com,http://hi.baidu.com/咖喱派2_0/)在虚拟机下安装Red Hat Enterprise Linux 6.1时,如果内存为512M或更小时,安装过程会提示内存太小,无法启用图形界面。这样,就只能是最小化安装。装好后,怎样安装桌面呢。我们以virtualbox下为例。一、配置yum库Virtualbox下的虚拟光驱位于/dev/sr0,所以,向virtualbox加载RHEL6.1的镜像后,就可以配置yum库了1.挂载镜像[root@redhat ~]#mkdir /media/rh 阅读全文
posted @ 2011-12-20 15:53 kunnet 阅读(22806) 评论(0) 推荐(1) 编辑

I'm up to my ears

摘要: I'm up to my ears 阅读全文
posted @ 2011-11-18 11:19 kunnet 阅读(166) 评论(0) 推荐(0) 编辑

How to boot ubuntu in text mode instead of graphical(X) mode

摘要: For ubuntu,you need to open the /etc/default/grub file, locate the following line:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"and change it to:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"and don’t forget to run ‘update-grub’ afterwards to update. 阅读全文
posted @ 2011-11-08 23:21 kunnet 阅读(283) 评论(0) 推荐(0) 编辑

the IP routing table under linux@school

摘要: route add -net 0.0.0.0 netmask 0.0.0.0 gw 10.0.3.2route add -net 172.16.0.0 netmask 255.255.0.0 gw 172.16.145.254 阅读全文
posted @ 2011-10-23 04:29 kunnet 阅读(154) 评论(0) 推荐(0) 编辑

第一次值班

摘要: 在华软网络管理协会的第一次值班,好开心,也有点累. 阅读全文
posted @ 2011-10-21 17:05 kunnet 阅读(127) 评论(0) 推荐(0) 编辑