摘要: 如果您正好要申请腾讯免费企业邮箱,请使用该邀请码(F6224C3B),帮助我提高限额!!谢谢如果您正好要申请腾讯免费企业邮箱,请使用该邀请码(F6224C3B),帮助我提高限额!!谢谢如果您正好要申请腾讯免费企业邮箱,请使用该邀请码(F6224C3B),帮助我提高限额!!谢谢如果您正好要申请腾讯免费... 阅读全文
posted @ 2015-07-15 22:36 xiaowenchao 阅读(299) 评论(0) 推荐(0) 编辑
摘要: Solve java.util.MissingResourceException: Can't find bundle for base name com...config, locale zh_CNat java.util.ResourceBundle.throwMissingResourceEx... 阅读全文
posted @ 2014-11-21 11:04 xiaowenchao 阅读(4360) 评论(0) 推荐(0) 编辑
摘要: 用shareToQQ函数分享图文消息,在qq 4.1.1 for android版本下打开联系人列表数秒后会闪退!在更高版本的V4.5.2.1,V4.2.1下则没有这个问题(证明各种设置没问题),各位确认下是否如此????代码:package com.example.share.entry;import org.json.JSONObject;import com.tencent.tauth.Constants;import com.tencent.tauth.IUiListener;import com.tencent.tauth.Tencent;import com.tencent.tau 阅读全文
posted @ 2013-12-18 21:00 xiaowenchao 阅读(1246) 评论(0) 推荐(0) 编辑
摘要: 需要开启虚拟机网络相关服务, 安装虚拟网卡VMware虚拟机下实现NAT方式上网1. 把你的虚拟网卡VMnet8设置为自动获得IP、自动获得DNS服务器,启用。2. 把你虚拟机中操作系统的“本地连接”也设置为自动获得IP、自动获得DNS服 务器(在虚拟机中,右键“本地连接”-双击“Internet 协议”,看看是不是自动的吧!固定IP的也在这里改!)3.当然是将虚拟机的上网方式选为NAT咯。右键你要设置的虚拟机选“设置”(因为有的不止虚拟一台),在“硬件”中选“以太网”, 将右边的网络连接改为NAT-确定。4.点菜单栏里的“编辑”-选“虚拟网络设置”,先将“自动桥接”给去掉(去掉钩钩),再选“ 阅读全文
posted @ 2013-10-03 22:57 xiaowenchao 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 一.生成.jks文件1、keystore的生成:分阶段生成:keytool-genkey-alias yushan(别名) -keypass yushan(别名密码) -keyalg RSA(算法) -keysize 1024(密钥长度) -validity 365(有效期,天单位) -keystoree:/yushan.keystore(指定生成证书的位置和证书名称) -storepass 123456(获取keystore信息的密码);回车输入相关信息即可;一次性生成:keytool-genkey -alias yushan -keypass yushan -keyalg RSA -key 阅读全文
posted @ 2013-07-26 21:04 xiaowenchao 阅读(8635) 评论(0) 推荐(0) 编辑
摘要: #include#includeint find_max_sum(int array[],int n){ int maxsofar=0;//当前最大值 int maxendinghere=0;//包含数组当前元素array[i]的最大值 for (int i=0;i<n;i++) { maxendinghere = max(maxendinghere+array[i],0); maxsofar = max(maxsofar,maxendinghere); } maxsofar = max(0,maxsofar);//数组元素全部小于零时,取最大数组和为0 return maxsofar; 阅读全文
posted @ 2013-06-23 22:17 xiaowenchao 阅读(751) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std;int main(void){ char *pp = "abc";//*pp指向的是字符串中的第一个字符。 char p[] = "abc"; //p++;//不允许改变p的值 //pp++;//true; //p[0] = 'A';//true //pp[0] = 'A';//false,运行时写错误 cout << pp<<endl; // 返回pp地址开始的字符串:abc cout << p& 阅读全文
posted @ 2013-06-17 16:47 xiaowenchao 阅读(927) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>int partition(int (&a)[11],int low,int high){ a[0] = a[low]; int pivotkey = a[low]; while(low<high) { while (low<high && a[high]>=pivotkey) { --high; } a[low] = a[high]; while (low<high && a[low]<=pivotkey) { ++low; } a[high] = a[low]; } a[l 阅读全文
posted @ 2013-06-17 16:15 xiaowenchao 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 直接上代码,其中有的c和c++混乱的地方,在vs2008下.cpp文件测试通过。#include <stdio.h>#include <stdlib.h>//从节点cur开始向下成调整部分大根堆//len为数组长度,数组下标从0开始template<typename T>void heap_adjust(T array[],int cur,int len){ int l = cur*2+1; int r = l+1; int maxI = cur; T elem; if (l<len && array[l]>array[cur]) 阅读全文
posted @ 2013-06-13 23:12 xiaowenchao 阅读(493) 评论(0) 推荐(0) 编辑
摘要: 1=TCPPortServiceMultiplexer>2=TCP/UDPManagementUtility>3=TCP/UDPCompressionProcess>5=TCP/UDPRemoteJobEntry>7=TCP/UDPEcho>11=TCP/UDPSystatActiveUsers>13=TCP/UDPDaytime>17=TCP/UDPQuoteoftheDay>18=TCP/UDPMessageSendProtocol>19=TCP/UDPCharacterGenerator>20=TCP/UDPFileTransf 阅读全文
posted @ 2013-06-10 16:50 xiaowenchao 阅读(2365) 评论(0) 推荐(0) 编辑