比最牛逼的FOPEN宏更牛逼的USING_FILE宏#defineUSING_FILE(file,path,type,code)\{\FILE*##file;\if(NULL==(##file=fopen(path,type)))\{\fputs("内存不足程序退出中",stderr);\exit(...
分类:
编程语言 时间:
2014-06-09 22:01:39
阅读次数:
368
假如你安装了一个软件,安装好后,输入命令时,提示“command not found”,
这涉及到环境变量的PATH问题。PATH设置是linux下定制环境变量的一个组成部分。linux中每个用户都有一个专门的运行环境,这个环境就是一组环境变量的定义,用户可以对自己的运行环境进行定制。环境和Shel...
分类:
系统相关 时间:
2014-06-09 19:35:53
阅读次数:
430
1) 解压压缩包,解压到/usr/local目录下
如:/usr/local/apache-maven-3.2.12) 配置环境变量 在~/.bash_profile添加如下两行代码export
M2_HOME=/usr/local/apache-maven-3.2.1export PATH=${....
分类:
其他好文 时间:
2014-06-09 13:17:19
阅读次数:
232
1.程序运行后异常显示:解决方案:在项目上点击右键->properties->Java
Build Path,remove掉Android Dependences即可
分类:
编程语言 时间:
2014-06-09 00:52:35
阅读次数:
247
In general classpath is the path where JVM can
find .class files and resources of your application and in this tutorial we will
see how to load resour...
分类:
编程语言 时间:
2014-06-08 22:20:57
阅读次数:
371
一.
Ubuntu默认的中文字符编码Ubuntu默认的中文字符编码为zh_CN.UTF-8,这个可以在/etc/environment中看到:sudo gedit
/etc/environment可以看到如下内容:PATH="/usr/local/sbin:/usr/local/bin:/usr/s...
分类:
其他好文 时间:
2014-06-08 21:43:04
阅读次数:
339
Develop Tools: xCode 5.1I write a demo for app
settings feature. The tutorial url is here.When I add a icon into app icon and
build the code, I got th...
分类:
移动开发 时间:
2014-06-08 20:39:03
阅读次数:
1920
我做的是上传Excel文件,保存内容到数据库。下面部分代码是fileUpload上传文件,并设置文件名以及保存服务器位置。if
(fileUpload.HasFile) { string fileNameNo = Path.GetF...
分类:
其他好文 时间:
2014-06-08 20:14:01
阅读次数:
282
Description
A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The possible instructions are
...
分类:
其他好文 时间:
2014-06-08 04:38:32
阅读次数:
386
Android内存限制
java虚拟机有内存使用上限的限制
adb shell进入手机,这此参数被纪录在/system/build.prop中,如果想直接查看可以使用adb shell getprop
单个应用程序最大内存限制,超过这个值会产生OOM
dalvik.vm.heapgrowthlimit
应用启动后分配的初始内存
dalvik.vm.heapsta...
分类:
移动开发 时间:
2014-06-08 03:42:55
阅读次数:
417