码迷,mamicode.com
首页 >  
搜索关键字:the xor-longest path    ( 29635个结果
C语言随笔记(二)厉害的宏
比最牛逼的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
Unable to execute dex: java.nio.BufferOverflowException. Check the Eclipse log for stack trace.(转)
1.程序运行后异常显示:解决方案:在项目上点击右键->properties->Java Build Path,remove掉Android Dependences即可
分类:编程语言   时间:2014-06-09 00:52:35    阅读次数:247
Load resources from classpath in Java--reference
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默认的中文字符编码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
fileUpload上传文件,并设置文件名以及保存服务器位置
我做的是上传Excel文件,保存内容到数据库。下面部分代码是fileUpload上传文件,并设置文件名以及保存服务器位置。if (fileUpload.HasFile) { string fileNameNo = Path.GetF...
分类:其他好文   时间:2014-06-08 20:14:01    阅读次数:282
MySql 同一个列中的内容进行批量修改
问题重现: MySql 数据库中,一给列的内容中包括 “.wmv”     需要将 “.” 后的wmv格式 换为“flv” 解决办法 update video_info set file_path=substring(file_path,1,length(file_path)-3); 先执行以上SQL进行删除; update video_info set file_path =...
分类:数据库   时间:2014-06-08 16:38:39    阅读次数:262
使用mvc模式开发网站
看了韩顺平的j2ee的视频后,吧里面教的做了出来,感觉好极了,新手上路!!! 这个肯定不是原创,但是也不是转载,那我就姑且把它作为翻译吧,给其他看视频学习但是没有代码的同学一点福利吧 首先是login.jsp的登陆界面代码。 <% String path = request.getContextPath(); String basePath = request.getScheme()+":...
分类:Web程序   时间:2014-06-08 10:47:14    阅读次数:258
Maximum Depth of Binary Tree
题目 Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. 方法 使用DFS对树进行遍...
分类:其他好文   时间:2014-06-08 10:26:33    阅读次数:207
eclipse启动出错:Failed to load the JNI shared library jvm.dll
本人电脑是64位的,用的eclipse也是64位的,jdk也是64位。 前两天MyEclipse需要安装一个插件,需要32的jdk,于是修改系统的path为32的,包括JAVA_HOME和JRE_HOME。 今天再次使用eclipse时就出现了Failed to load the JNI shared library jvm.dll的错误。如图: 很是郁闷啊,网上一查,是64的eclip...
分类:系统相关   时间:2014-06-08 05:39:10    阅读次数:384
POJ 1573 Robot Motion.
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!