码迷,mamicode.com
首页 > 全部
第03章-VTK系统概述(3)
【译者:这个系列教程是以Kitware公司出版的《VTK User’s Guide -11th edition》一书作的中文翻译(出版时间2010年,ISBN: 978-1-930934-23-8),由于时间关系,我们不能保证每周都能更新本书内容,但尽量做到一周更新一篇到两篇内容。敬请期待^_^。欢迎转载,另请转载时注明本文出处,谢谢合作!同时,由于译者水平有限,出错之处在所难免,欢迎指出订正!】...
分类:其他好文   时间:2014-05-25 06:15:41    阅读次数:279
【Espruino】NO.03 从点灯开始
点灯程序应该是每个入门者都经历过的第一个程序吧,当然“hello world”算是鼻祖了。看到板子上的LED小灯亮灭变化,心里应该充满了幸福感,对于新手来说额,大侠就更不用多说了,一天一小步,慢慢积累。 板载的LED使用了A13、A14、A15三个I/O引脚: 根据图示,当I/O输出高电平时,LED亮;反之,LED灭;此刻高电平为3.3V,低电平为0,因为是数字方式驱动。 这里要介绍一个函数digitalWrite(),函数原型如下: 描述:设置给定引脚的高低状态,无返回值...
分类:其他好文   时间:2014-05-25 06:22:53    阅读次数:280
每日一小练——按字典顺序列出所有子集
上得厅堂,下得厨房,写得代码,翻得围墙,欢迎来到睿不可挡的每日一小练!...
分类:其他好文   时间:2014-05-25 18:15:21    阅读次数:262
Geeks : Kruskal’s Minimum Spanning Tree Algorithm 最小生成树
寻找图中最小连通的路径,图如下: 算法步骤: 1. Sort all the edges in non-decreasing order of their weight. 2. Pick the smallest edge. Check if it forms a cycle with the spanning tree formed so far. If cycle is n...
分类:其他好文   时间:2014-05-25 07:35:59    阅读次数:301
ACdream1034:the cover circle
Problem Description 用半径相等的两个圆覆盖一个w*h的矩形,要求两圆不相交且必须在矩形内。求覆盖面积最大时两圆半径。 Input 输入包含多组数据,EOF结束。 每组数据包含一行,分别是两个实数w和h代表矩形的长和宽。 0 Output 每组数据输出一行表示圆的半径,小数点后保留三位。 Sample Input 2.000 1....
分类:其他好文   时间:2014-05-25 18:28:13    阅读次数:227
ACdream1012:Convex
Problem Description We have a special convex that all points have the same distance to origin point. As you know we can get N segments after linking the origin point and the points on the convex. ...
分类:其他好文   时间:2014-05-25 09:50:19    阅读次数:217
LeetCode: Rotate List [060]
【题目】 Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->3->NULL. 【题意】 给定一个链表L,和非负数K,要求把链表的后k个节点移到链表前 【思路】 先将指针指向指向倒数第K个节点,然后...
分类:其他好文   时间:2014-05-25 18:20:06    阅读次数:252
C#调用OFBiz的WebService
OFBize  WebService 跑起来了,用Soapui 测试正常。 在C# 中调用, 参考文章:http://blog.csdn.net/lorinzhang/article/details/6339380 同样使用其 http post 方法,返回的是失败报文。 迷惑中,使用rawcap 抓包分析,发现Soapui 的包 Content-Type: text/xml;chars...
分类:Web程序   时间:2014-05-25 12:59:46    阅读次数:301
ACdream1077:LCM Challenge
Problem Description Some days ago, I learned the concept of LCM (least common multiple). I've played with it for several times and I want to make a big number with it. But I also don't want to use...
分类:其他好文   时间:2014-05-25 16:32:49    阅读次数:214
ACdream1020:The Game about KILL
Problem Description Teacher HU and his 40 students were trapped by the brigands. To show their power, the head of the brigands want to select one people to kill. Teacher HU and his 40 students wil...
分类:其他好文   时间:2014-05-25 18:19:44    阅读次数:306
VC++DUIEngine界面编程1--学习编译及配置DUIEngine项目
1. 为什么要用DUIEngine: DUIEngine的作者是:启程软件。在此感谢他为此项目所付出的心血,能为我们这些界面爱好者,奉献了宝贵的时间以及优秀的代码。 DUIE的优势为: 1. 作者将金山的BKWin进行了深度改写,从而使之更易于使用和开发。相比传统的WTL而言,DUIE增加了许多窗口特效,如动态缩放窗口,3D界面旋转。从而使开发者能够在较短时间内开发出比较炫丽的界面特效。 ...
分类:编程语言   时间:2014-05-25 16:30:43    阅读次数:391
[ALGO-2] 最大最小公倍数
算法训练 最大最小公倍数   时间限制:1.0s   内存限制:256.0MB 问题描述 已知一个正整数N,问从1~N中任选出三个数,他们的最小公倍数最大可以为多少。 输入格式 输入一个正整数N。 输出格式 输出一个整数,表示你找到的最小公倍数。 样例输入 9 样例输出 504 数据规模与约定 ...
分类:其他好文   时间:2014-05-25 07:33:56    阅读次数:243
acd the cover circle(分情况讨论)
Problem Description 用半径相等的两个圆覆盖一个w*h的矩形,要求两圆不相交且必须在矩形内。求覆盖面积最大时两圆半径。 Input 输入包含多组数据,EOF结束。 每组数据包含一行,分别是两个实数w和h代表矩形的长和宽。 0 Output 每组数据输出一行表示圆的半径,小数点后保留三位。 Sample Input 2.000 1....
分类:其他好文   时间:2014-05-25 18:26:55    阅读次数:266
Lucene中Directory
MMapDirectory继承自FSDirectory,针对jre至今没解决的Mmap close不回收空间(直至full gc才回收)的bug,lucene用hack方式回收(仅对sun jam)(线上目前还是出现这个问题,是什么情况,得确认一下)。其中64位linux下chunk是1G,MMAP之后返回ByteBuffer数组,其IndexInput类是MMapIndexInput。 FSD...
分类:其他好文   时间:2014-05-25 18:17:00    阅读次数:314
ADB启动不起来的问题
ADB启不来,报"The connection to adb is down, and a severe error has occured"  检查任务管理器,也没看到adb.exe. 尝试手工启动.   C:\Ndk\adt-bundle-window\sdk\platform-tools>adb kill-server * server not running * C:\Ndk\adt-...
分类:数据库   时间:2014-05-25 07:32:54    阅读次数:310
acd Convex(求面积)
Problem Description We have a special convex that all points have the same distance to origin point. As you know we can get N segments after linking the origin point and the points on the convex. ...
分类:其他好文   时间:2014-05-25 06:55:54    阅读次数:188
二叉树的线性存储
/*************************************************** 二叉树的线性存储 by Rowandjj 2014/5/23 ***************************************************/ #include #include using namespace std; #define MAX 255 #define...
分类:其他好文   时间:2014-05-25 04:25:41    阅读次数:261
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!