立即安装所选模块C:\goe7\source\openerp\addons\base\module\module.py def button_immediate_install(self, cr, uid, ids, context=None): """ Installs the selected ...
分类:
其他好文 时间:
2014-07-14 09:34:02
阅读次数:
215
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2016题目大意:把最小的和第一个交换并输出。注意格式哦! 1 #include 2 int main () 3 { 4 int n,a[110],i,j,t,min; 5 while (...
分类:
其他好文 时间:
2014-07-14 09:22:53
阅读次数:
304
字符串朴素匹配法相等情况int index(const char * str1, const char * str2, int pos){ int i = pos; int j = 0; while(i = strlen(str2)) // matched and retu...
分类:
其他好文 时间:
2014-07-14 09:00:51
阅读次数:
176
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace OfTypeDemo{ class Program { static void Main(...
分类:
其他好文 时间:
2014-07-14 08:51:20
阅读次数:
175
var allLineData = from ss in LinkToSQL.CadNozTable from tt in LinkToSQL.TasCom where tt.TasComID == ss.FK_TasComID && ss.FK_TasComID == ID select ss; ...
分类:
其他好文 时间:
2014-07-14 08:28:47
阅读次数:
195
通常Colliders会与Rigidbody一起使用,没有添加碰撞体的刚体会彼此相互穿过。常用碰撞体有以下几种:Box Collider:盒子碰撞体,是一个立方体外形的碰撞体,可调整为不同大小的长方体,一般可用作门,墙及平台等,也可用于交通工具的外壳。最适合的是使用在盒子和箱子上。Is Trigge...
分类:
其他好文 时间:
2014-07-14 00:56:01
阅读次数:
186
题目来源,待字闺中,原创@陈利人
,欢迎大家继续关注微信公众账号“待字闺中”
原题给定字符串,可以通过插入字符,使其变为回文。求最少插入字符的数量。例如:
1. ab最少插入1个字符,变为*b*ab
2. aa最少插入0个字符
3. abcd最少插入3个字符,*dcb*abcd
分析:根据回文串的定义,很容易获得递归思路,首先比较第一个和最后一个字符,相等则插入个数等于中间的...
分类:
其他好文 时间:
2014-07-13 00:03:08
阅读次数:
334
数组是升序的,数组经过循环移动之后,肯定是有左半部分或者有半部分还是升序的。
代码:
public class SearchRotateArray {
public static int search(int a[], int l, int u, int x) {
while(l<=u){
int m = (l+u)/2;
if(x==a[m]){
return m;...
分类:
移动开发 时间:
2014-07-12 23:11:02
阅读次数:
271
一:Spreadsheet_Excel_Reader类的基本使用方法:
$reader=new Spreadsheet_Excel_Reader();
$reader->setOutputEncoding("GBK");
$reader->read($fileName);
$rows=$reader->sheets[2]['numRows'];
$cells...
分类:
其他好文 时间:
2014-07-12 21:29:58
阅读次数:
312