现在位置: 首页 > jxojgxrtn发表的所有文章
  • 09月
  • 11日
移动开发 ⁄ 共 2538字 评论关闭
文章目录 处理方法 下面的代码中报错了,代码如下 @Override p public View getView(final int position, final View convertView, final ViewGroup parent) { final ViewHolder viewHolder; View view = convertView; if (view == null) { view = LayoutInflater.from(mContext).inflate(R.layout.row, parent, false); viewHolder = new ViewHolder(); viewHolder.textTitle = (TextView) view.findViewByI......
阅读全文
  • 05月
  • 22日
综合 ⁄ 共 2386字 评论关闭
/** * @author JackZhang * */ public class OAuthAPI { public static final String APP_ID = "ABC"; public static final String APP_SECRET = "CDE"; public static final String DOMAIN = "WWW.ABC.COM"; public static void OAuthIfNesscary(HttpServletRequest request, HttpServletResponse response) throws IOException { String code = request.getParameter("code"); HttpSession session = request.getSession(); boolean isValidCode = true; ......
阅读全文
  • 04月
  • 28日
综合 ⁄ 共 3450字 评论关闭
CVS简介版本控制系统is a version control system;The Repository 仓库Repository 仓库(服务器端)Working directory工作目录(客户端)是C/S结构的用于UNIX或LINUX平台 Creating Repository 创建仓库1.Create repository root directory     for example:    # mkdir /export/cvs/openlab    创建目录2.chgrp the repository's' root directory    for example:    # chgrp other /export/home/cvs/openlab    更改访问组3.chmod the repository's' root directory    for example:    # chmod g+rwx /export/home/cvs/openlab ......
阅读全文
  • 04月
  • 23日
综合 ⁄ 共 450字 评论关闭
Nim博弈问题,因为Nim博弈第一步要转化至必败态 设    s=a1 ^ a2 ^ a3 ^ a4 ^ ...... an,那么只需要把 ak 换为 ak^s 即可,当然 前者必须要大 因为 s=a1 ^ a2 ^ a3 ^ a4 ^ ak ^ s ^ .......an=a1^a2^a3^......an ^ s = s^s=0; 所以转为了必败态 code: #include <map> #include <cstring> #include <iostream> #include <cstdio> #include <algorithm> using namespace std; int a[101]; int main() { int t,temp,sum; while(~scanf("%d",&t)&&t) { sum=temp=......
阅读全文
  • 04月
  • 05日

两个araryList对象比较
综合 ⁄ 共 481字 评论关闭
在开发中,遇见两个arryList<object>对象之间的比较时,可以用下面的方法; 有两个list:list1,list2 list1 = new ArrayList<User>(); list2= new ArrayList<User>(); list1 = new ArrayList<User>(); list1 = User.getAllUsers(context);for(int i = 0;i<list1.size();i++){user =  (User) list1.get(i);if (list.contains(user)) list1.remove(i--);//不知道为什么减减} Log.i("list1", "list.size"+list1.size()); 前提:user对象要重写equest()方法,不然没有效果。 @Overridepublic boolean ......
阅读全文
  • 02月
  • 07日
综合 ⁄ 共 1232字 评论关闭
  搞了半天终于可以用mentohust联网了。当然,这半天的时间都网上百度各种解决方法(我也是一名小白呀) 妹的。网上的资料太坑爹了,解决方法给一半另一半让你猜,猜你妹,再详细那么一点点会死么?上来设置mentohust联网的哪位不是小白,cd你妹个目录。。。 好了,不多说。讲讲设置吧,在这里怎样安装文件我就不说了。自己找资料去,在这里我只给出十分完整的mentohust设置方法。 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////......
阅读全文
  • 02月
  • 07日
综合 ⁄ 共 711字 评论关闭
新建一个picture用户对象: uo_pic picturename属性设置为按钮使用的图片 外部函数调用:FUNCTION ulong CreateRoundRectRgn(ulong X1,ulong Y1,ulong X2,ulong Y2,ulong X3,ulong Y3) LIBRARY "gdi32.dll" FUNCTION ulong SetWindowRgn(ulong hWnd,ulong hRgn,boolean bRedraw) LIBRARY "user32.dll" constructor事件脚本: ulong width1,height1,rgnh;   width1=UnitsToPixels(width,XUnitsToPixels!)+1height1=UnitsToPixels(height,YUnitsToPixels!)+1   rgnh = CreateRoundRectRgn(7, 7, width1 - 7 , height1 - 7, 50, 50)//参......
阅读全文
  • 01月
  • 26日
综合 ⁄ 共 3358字 评论关闭
在项目中经常会遇到使用CSV文件,比如从HR中得到的文件拿到其它地方去处理,实际会需要得到当前和上次文件中的差异,比如:添加,删除,修改, 那么如何来实现呢,可能有很的方法,在这里我说一下我的实现方法而且已投入实际使用。   首先, CSV文件典型以,分隔,当然还有其它的字符,由很多列的属性和属性值组成,那么两个文件变化之后,通常会是怎样的情况呢,   比如:添新的一行,删除已有一行,修改已有行某些值,没有任何变化。   所以实现思路是: 关键之一是能够找一个东西来唯一标识每一行,在这里我用的把某几个......
阅读全文
  • 01月
  • 12日
综合 ⁄ 共 1375字 评论关闭
Number Sequence Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 7872 Accepted Submission(s): 3588 Problem Description Given two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 1000000). Your task is to find a number K which make a[K] = b[1], a[K + 1] = b[2], ...... , a[K + M - 1] = b[M]. If there are more than one K exist, output the smallest one. Input The fir......
阅读全文
  • 01月
  • 11日
综合 ⁄ 共 7789字 评论关闭
APPMODUL.cpp中的WinMain函数: // This is a part of the Microsoft Foundation Classes C++ library. // Copyright (C) 1992-1998 Microsoft Corporation // All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. // See these sources for detailed information regarding the // Microsoft Foundation Classes product. #include "stdafx.h" #ifdef _DEBUG #undef THIS_F......
阅读全文
  • 01月
  • 08日
综合 ⁄ 共 1238字 评论关闭
ubuntu下wine中安装qq2010 今天尝试在ubuntu10.10下wine中安装qq,中间出现了许多问题,看了一些参考结合自己的今天经验做了一下总结。下面将具体步骤写下: 1.安装Wine:sudo apt-get install wine 2. 获取最新的winetricks, 在终端中输入: wget http://www.kegel.com/wine/winetricks 3. 下载QQ 4. 在 终端中输入 sh winetricks msxml3 gdiplus riched20 riched30 ie6 vcrun6 vcrun2005sp1, 这个命令可能需要用到cabextract命令,没有的话使用sudo apt-get install cabextract进行安装 5. 安装qq运行库 sh winet......
阅读全文
  • 11月
  • 21日
综合 ⁄ 共 612字 评论关闭
水过了,,,, 听说是一道线段树的题,,,但是这里没有用线段树做,就是在输入的时候就对他排序,删除的时候也按序删除(显然),就酱紫。。。。 原先不知道WA在哪里了,真的弄了好久。然后在一个阳光尚好的早上,在一整排的AC中。。。。终于A掉了。 #include <stdio.h> #define maxn 100010 #define ll __int64 int que[maxn]; int main() { int n; char op[5]; int x; while(scanf("%d",&n)!=EOF) { int i,j,k; int top=0; while(n--) { scanf("%......
阅读全文