原文链接http://www.ilisen.net/wpf-references-ocx-causes-an-arithmetic-operator-overflow.html这个问题其实原因在于OCX控件与WPF类型的一些不匹配。之前,我在我的项目里面,通过winform控件承载ocx,然后通过中...
分类:
其他好文 时间:
2014-05-10 08:15:53
阅读次数:
486
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> def strQ2B(ustring):
#把全角字符串转半角
ustr...
分类:
编程语言 时间:
2014-05-09 22:27:33
阅读次数:
342
大家看看。
我们知道用“ & ”号比用“+”号快。因为“+”要对字符窜变量做类型判断并转换。
当时也没想出什么好办法。只是将两次“&”运算拆开,速度提了一倍。还是解决不了问题。
结果就是:for i 1 to 5000 ,i以字符形式相加。用&运算,要600-800ms
现在试试下面这个。建了个CStrCat的类。
PageExeTime1=Timer * 1000 '计时开始...
分类:
其他好文 时间:
2014-05-09 22:21:14
阅读次数:
291
Description
定义一个复数类Complex,重载运算符“+”,使之能用于复数的加法运算。将运算符函数重载为非成员、非友元的普通函数。编写程序,求两个复数之和。
Input
两个复数
Output
复数之和
Sample Input
3 4
5 -10
Sample Output
(8.00,-6.00i)
#include ...
分类:
编程语言 时间:
2014-05-09 22:20:39
阅读次数:
293
Description
定义一个复数类Complex,重载运算符“+”,“-”,“*”,“/”,使之能用于复数的加、减、乘、除。运算符重载函数作为Complex类的成员函数。编写程序,分别求两个复数之和、差、积和商。
Input
两个复数
Output
两个复数之和、差、积和商
Sample Input
3 4
5 -10
Sample Out...
分类:
编程语言 时间:
2014-05-09 21:52:08
阅读次数:
296
更多信息访问个人博客:http://cloudbps.com接到需求帮朋友监控一个信息网站,当该网站有相关的数据更新的时候发送信息到指定邮箱.下面是相关的python脚本,用到了httplib,time,sys,smtplib模块#!/usr/bin/envpython#coding=utf8importhttplib,time
importsys
importsmtplib
reloa..
分类:
编程语言 时间:
2014-05-09 21:41:15
阅读次数:
439
安装pomelo时发现:错误解释:node-gyp和node的版本不一致,有可能是python版本太低,默认是2.6.6最后更改node版本和python版本node版本是10.2.6python版本是2.7.3再次重新安装无错误
分类:
其他好文 时间:
2014-05-09 21:32:43
阅读次数:
451
importtypesaaa=0printtype(aaa)iftype(aaa)istypes.IntType:print"thetypeofaaaisint"ifisinstance(aaa,int):print"thetypeofaaaisint"bbb=‘hello‘printtype(bbb)iftype(bbb)istypes.StringType:print"thetypeofbbbisstring"ifisinstance(bbb,str):print"thetypeofbbbisstring..
分类:
编程语言 时间:
2014-05-09 21:28:19
阅读次数:
474
一、安装pomelo安装前准备:根据需要安装相应版本的Python和node[root@AY14041810545836988bZopt]#python--versionPython2.6.6一、下载Python2.7.3,此版本是适合node-gpy的#wgethttp://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz22.#tar-jxvfPython-2.7.3.tar.bz23.cdP..
分类:
其他好文 时间:
2014-05-09 21:27:46
阅读次数:
493
Yet another easy-to-understand, easy-to-use aws s3 python sdk code examples....
分类:
编程语言 时间:
2014-05-09 20:51:39
阅读次数:
703