上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 329 下一页
摘要: 安装参考前文,http://blog.csdn.net/sheismylife/article/details/8794589方法一致。只不过这次在GCC4.8.1上编译。scons install 没有正确安装头文件和.a文件到系统目录下。需要手动运行下面的命令:cp -r src/mongo/ /usr/include/chmod -R 777 /usr/include/mongo/cp libmongoclient.a /usr/lib/仍然不能编译动态库。 阅读全文
posted @ 2013-07-30 18:55 jlins 阅读(189) 评论(0) 推荐(0)
摘要: 如图这样,其实是要插入一个time的控件,这样才能使得坐标值会根据鼠标的移动而不停变化。time插件中写private void timer1_Tick(object sender, EventArgs e) { if (webBrowser1.Bounds.Contains(this.PointToClient(Cursor.Position))) { this.toolStripStatusLabel1.Text = webBrowser1.PointToClient(Cursor.Position).ToString()... 阅读全文
posted @ 2013-07-30 18:54 jlins 阅读(1073) 评论(0) 推荐(0)
摘要: Problem Description Given a specified total t and a list of n integers, find all distinct sums using numbers from the list that add up to t. For example, if t=4, n=6, and the list is [4,3,2,2,1,1], then there are four different sums that equal 4: 4,3+1,2+2, and 2+1+1.(A number can be used within a s 阅读全文
posted @ 2013-07-30 18:52 jlins 阅读(161) 评论(0) 推荐(0)
摘要: 如何调用另外一个app应用的activity或者service,本文提供一个验证可行的方法。调用方法: Intent intent=new Intent("youActionName"); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.addCategory(Intent.CATEGORY_DEFAULT); intent.putExtra("type",inType); //if needed ComponentName cn=new ComponentName("applic. 阅读全文
posted @ 2013-07-30 18:50 jlins 阅读(539) 评论(0) 推荐(0)
摘要: 在百度地图api中,默认的地图图标是一个红色的椭圆形。但是在项目中常常要求我们建立自己的图标,类似于我的这个操作很简单,分如下几步进行步骤一:先ps一个图标,大小要合适,如果要背景透明的,记得保存成png格式。推荐一个在线ps网站http://uupoop.com/。做好图片之后,如果你使用vs或其他控制谈调用的百度地图api,要把图片放到debug文件夹中。步骤二:在html语句中加入:var map =new BMap.Map('container');map.centerAndZoom(new BMap.Point(116.380797, 39.918497), 18); 阅读全文
posted @ 2013-07-30 18:47 jlins 阅读(1061) 评论(0) 推荐(0)
摘要: 1 综述 在Unix和Linux系统里,cp是经常使用的一个命令,用于复制文件,用法如下: $cp src_file dest_file 以下就使用若干系统调用来实现自己的cp。 2 原理 open:打开一个文件; close:关闭文件; read:从文件中读取数据到缓冲区; write:将数据从缓冲区写入文件; fcntl:给文件加锁; sbrk:申请堆内存; brk:释放堆内存。 以下直接上代码:#include #include #include #include #include #include #include int main(int argc, char *argv[]){ . 阅读全文
posted @ 2013-07-30 18:46 jlins 阅读(592) 评论(0) 推荐(0)
摘要: 文件上传的几种不同语言和不同方法的总结。 第一种模式 : PHP 语言来处理这个模式比较简单, 用的人也是最多的, 类似的还有用 .net 来实现, jsp来实现, 都是处理表单。只有语言的差别, 本质没有任何差别。 file.php 文件内容如下 : 0) { echo "Return Code: " . $_FILES["file"]["error"] . ""; } else { echo "Upload: " . $_FILES["file"]["name& 阅读全文
posted @ 2013-07-30 18:44 jlins 阅读(13999) 评论(1) 推荐(1)
摘要: //数组中排序 int in[] = {1,6,5,8,9}; Arrays.sort(in); for(int i=0;idata[i]) min=data[i]; } System.out.println("最大值"+max+"最小值"+min);///JAVA冒泡排序int[] numbs = {10,9,5,2,1,3,8,7,6,4}; int temp = 0; for(int i = 0; i numbs[j]){ temp = numbs[i]; numbs[i] = numbs[j]; numbs[j] = temp; } } } fo 阅读全文
posted @ 2013-07-30 18:42 jlins 阅读(4529) 评论(0) 推荐(0)
摘要: 跨应用发送和接收广播,与同应用下的情况差不多,只需要添加一个权限,以及配置一下receiver的android:process属性即可发送广播的应用中:Java代码 Intentintent=newIntent("info.zhegui.receiver.interprocess");sendBroadcast(intent);注意要在manifest.xml添加接收广播的权限,这个权限是receiver自定义的Java代码 接收广播的应用中:Java代码 publicclassMyReceiverextendsBroadcastReceiver{privatefinalS 阅读全文
posted @ 2013-07-30 18:40 jlins 阅读(438) 评论(0) 推荐(0)
摘要: 题:编写程序实现单链表的插入。【美国某著名计算机嵌入式公司2005年面试题】答案:完整代买如下:// P167_example1.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #include #include typedef struct student{ int data; struct student *next;}node;//建立单链表node* create(){ node *head,*p,*s; int x, c 阅读全文
posted @ 2013-07-30 18:38 jlins 阅读(403) 评论(0) 推荐(0)
上一页 1 ··· 49 50 51 52 53 54 55 56 57 ··· 329 下一页