码迷,mamicode.com
首页 >  
搜索关键字:code    ( 108667个结果)
callback in C
callback is nothing but passing the function pointer to the code from where you want your handler/ callback to be invoked.check here
分类:其他好文   时间:2014-09-23 09:53:04    阅读次数:313
OpenERP-Java调用XML-RPC接口示例(Examples for calling XML-RPC interfaces by Java)
官网没有给出CREATE、SEARCH、WRITE等XML-RPC接口的Java 调用示例,在此补充一下。 There is no examples on the official site for the XML-RPC operation interfaces for Java, so I posted my code here.  import org.apache.xmlrpc.Xml...
分类:编程语言   时间:2014-09-23 00:07:33    阅读次数:443
hdu 2072 单词数(STL set写法)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2072 思路简单,但是注意一个细节就是最后可能是空格结束的,就是这儿让我WA啦好多次呀。。。 code: #include #include #include #include #include #include #include using namespace std; int...
分类:其他好文   时间:2014-09-22 22:51:43    阅读次数:184
poj 2503 Babelfish
题目链接:http://poj.org/problem?id=2503 题目大意:就是给你一本词典,问你能否在词典中找到你要查询单词的意思,不能就输出eh 思路:map的入门级题,直接词典中的词组存到map中,然后直接查询。就是有些细节需要注意 code: #include #include #include #include #include using nam...
分类:其他好文   时间:2014-09-22 22:35:23    阅读次数:179
UNIX下C语言编程静态库的应用模型
接上篇(1)调用库函数代码1 void main()2 {3 print1();4 print2();5 }View Code(2)编绎链接选项1 gcc -O -o main main.c -L./ -lprView Code(3)执行目标程序./main
分类:编程语言   时间:2014-09-22 21:00:53    阅读次数:177
Segment Fault 的访问地址究竟在哪里?
如果指针写数据失败, 比如  *p = 1 可以进一步看, 究竟为何失败 可以用察看  /proc/{pid}/maps, 但往往这个时候,程序已经crash 了,就找不到这个文件。 那就只能在crash 之前code 插入代码看了。 写一个copyfile 的函数 static void copyfile(char * rfile, char * wfile) { int rfd...
分类:其他好文   时间:2014-09-22 19:47:53    阅读次数:153
解决在用google-code-prettify高亮博客的代码,但是行号怎么也无法显示
在网上查了一下,有一个不太完美的解决办法,就是加入如下代码: li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 {  list-style-type: decimal !important } 然后再将你需要显示的代码里面的换成回车即可,这样就可以显示出来行号了。      <div class=&quo...
分类:其他好文   时间:2014-09-22 17:52:03    阅读次数:205
试编写一个递归函数,用来输出n 个元素的所有子集。
试编写一个递归函数,用来输出n 个元素的所有子集。 {CSDN:CODE:472926}...
分类:其他好文   时间:2014-09-22 16:50:38    阅读次数:158
自动生成验证码
经常用到的自动生成验证码小技术,在此总结一下。    可以分为两个部分,一个生成四位随机数,一部分是绘制背景。代码如下: //自动生成验证码 private string GenerateCheckCode() { int number; char code; string checkCode = String.Empty; ...
分类:其他好文   时间:2014-09-22 16:30:02    阅读次数:168
PHP 在线文档
1. http://www.t086.com/code/php/翻译文档2.php.net/manual/zh/ 官方文档
分类:Web程序   时间:2014-09-22 16:08:32    阅读次数:149
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!