现在位置: 首页 > probing发表的所有文章
  • 10月
  • 08日
数据库 ⁄ 共 1619字 评论关闭
1.Jdbc连接Access数据库 ①通过控制面板>>管理工具>>数据源 选择系统DNS选项卡,添加Microsoft Access Driver (*.mdb),以数据源名称sample为例,选择数据库文件。在程序的链接代码如下: public static Connection getConnection() {   try {    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");    Connection conn = DriverManager.getConnection("jdbc:odbc:sample", "", ""); //此种连接方式需要建立一个名为sample的数据源     } catch (ClassNotFoundException e) {    e.printStackTrace();   } catch (SQLExce......
阅读全文
  • 07月
  • 21日
移动开发 ⁄ 共 3628字 评论关闭
  在main.xml文件中代码如下:   <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"   android:orientation="vertical" android:layout_width="fill_parent"   android:layout_height="fill_parent">   <TextView      android:id="@+id/info"      android:layout_width="fill_parent"      android:layout_height="wrap_content"      android:textSize="25px"      android:gravity="center_horizontal"/>   <ListView      android:id......
阅读全文
  • 09月
  • 10日
综合 ⁄ 共 545字 评论关闭
gem install bundler rails menxu@debian:~/文档/ruby$ bundle -v ERROR: Gem bundler is not installed, run `gem install bundler` first. menxu@debian:~/文档/ruby$ gem install bundler rails Successfully installed bundler-1.3.4 Parsing documentation for bundler-1.3.4 Successfully installed rails-3.2.13 Parsing documentation for rails-3.2.13 2 gems installed menxu@debian:~/文档/ruby$ bundle -v ERROR: Gem bundler is not installed, run `gem install bundler` first. 在终端里运行 source ~/.rvm/sc......
阅读全文
  • 05月
  • 04日
综合 ⁄ 共 853字 评论关闭
输入任意正整数n,统计1到n中1出现的次数,比如输入12,其中1,10,11,12出现了5次。 我知道的两种c++实现算法如下,写在一起比较起来方便:   #include <iostream> #include <sstream> #include <string> #include <time.h> using namespace std; void main(){ clock_t start1,start2,end1,end2; double n; cin>>n; start1 = clock(); int count = 0; for(int i = 1;i <= n;i++){ string nStr = to_string(i); int pos = nStr.find_first_of('1'); if( pos != string::npos) {......
阅读全文
微软等公司数据结构+算法面试100题、分析、考点、解答(第1~100题) 面试题出处:结构之法、算法有道(July) 转载请注明:http://blog.csdn.net/huangxiaominglipeng 作者:Max 主要目的:对算法和数据结构面试题进行分析和考点说明以及代码解答 第1题 把二元查找树转变成排序的双向链表  题目: 输入一棵二元查找树,将该二元查找树转换成一个排序的双向链表。 要求不能创建任何新的结点,只调整指针的指向。    10  / \  6 14  / \ / \ 4 8 12 16  转换成双向链表 4=6=8=10=12=14=16。    首先我们定义的二元查找树节点的......
阅读全文
  • 02月
  • 16日
综合 ⁄ 共 1056字 评论关闭
我,23岁,应届毕业生。生活,工作,爱情都处于人生的低谷,一穷二白,一无所有,一事无成。   分享一下成长的建议吧。   生活:最近一个月刚刚来到北京一家公司实习,有时候去叔叔家里住,有时候到同学那里住,每天7点就要起床,去挤地铁,生命科学院站,相信有人在那里住过,刚刚毕业的应届大学生蜗居之所!特别累!!   学习:最不好的状态,很少看书,只是自己是个资讯狂,每天要阅读大量的It新闻和社会新闻。这个习惯将近十年了。不过这段时间也因为没有静下心来好好看书而后悔。   工作:还没有开始找,简历都没......
阅读全文
  • 12月
  • 01日
综合 ⁄ 共 1848字 评论关闭
THandleStream enables applications to read from and write to communications resources identified by a handle. Unit Classes Description Use THandleStream to access files, sockets, named pipes, mailslots, or other communications resources that provide a handle when opened. For example, the FileOpen function provides a handle for a file on disk. THandleStream allows applications to use a uniform stream interface when performing I/O using a handle. To avoid the overhead of managing file handl......
阅读全文
  • 11月
  • 27日
综合 ⁄ 共 192字 评论关闭
问题解决很容易,Ultraedit打开bochsrc.bxrc文件,修改 romimage: file=$BXSHARE/BIOS-bochs-latest, address=0xf0000 改成 romimage: file=$BXSHARE/BIOS-bochs-latest 这样在双击运行bochsrc.bxrc文件,即可SLS-1.0系统 这个系统的Linux内核是0.99,相当的古老了!
阅读全文
  • 11月
  • 18日
综合 ⁄ 共 1533字 评论关闭
自定义组合控件   1)编写一个类继承ViewGroup,   2)重写构造方法   3)在XML中配置一个视图,控件初始化时,填充这个视图,并挂载到控件中   4)添加自定义属性     在value目录中,编写一个xml文件,<?xml version="1.0" encoding="utf-8"?> <resources>      <declare-styleable name="setting_view_style">  <attr name="title" format="string"></attr>  <attr name="checked_text" format="string"></attr>  <attr name="unchecked_text" format="string"></attr>      </......
阅读全文
  • 10月
  • 27日
综合 ⁄ 共 126字 评论关闭
http://blog.163.com/shengrui_step/blog/static/2087091872013830113025185/ http://www.cnblogs.com/rereadyou/articles/2000433.html
阅读全文
使用Genymotion模拟器运行Android项目的时候安装失败并出现“INSTALL_FAILED_CPU_ABI_INCOMPATIBLE”的提示,这时因为Cpu指令集不同导致的,我们知道不同的Cpu指令集是不一样的,什么叫指令集大家不懂的可以百度或谷歌下在这就不多说了。手机根据Cpu指令可以大致分为三种:ARMv6/7、Intel Atom和MIPS等,如果在APK编译阶段使用了Intel的指令集而运行的时候使用的是ARM类型Cpu的模拟器,这时候就会出现上面的错误而导致APK无法安装!对于Genymotion模拟器来说,只需要下载一个指令集的扩展包即可:Genymotion。下载后无需解压,直接将......
阅读全文
  • 04月
  • 25日
综合 ⁄ 共 2175字 评论关闭
A - The kth number Time Limit: 12000/6000MS (Java/Others) Memory Limit: 128000/64000KB (Java/Others) SubmitStatus Problem Description Do you still remember the Daming Lake's  k'th number? Let me take you back and recall that wonderful memory. Given a sequence A with length of n,and m querys.Every query is defined by three integer(l,r,k).For each query,please find the kth biggest frequency in interval [l,r]. Frequency of a number x in [l,r] can be defined by this code: int FrequencyO......
阅读全文