Translated by mznewfacer 2011.11.16 首先,看了Xizhi Zhu 的这篇Qt之美(一):D指针/私有实现,对于很多批评不美的同路人,暂且不去评论,只是想支持一下Xizhi Zhu,在引用一下Jerry Sun的话,“C++需要宏定义就像需要设计模式一样。也许你不知 ...
分类:
其他好文 时间:
2018-08-31 19:24:44
阅读次数:
154
\documentclass[11pt]{amsart} %\usepackage{color,graphicx}%\usepackage{mathrsfs,amsbsy} \usepackage{amssymb}\usepackage{amsmath}\usepackage{amsfonts}\u ...
分类:
其他好文 时间:
2018-08-31 01:19:03
阅读次数:
146
原文:添加到界面前获取尺寸You have few options you can do this, forcing to call Window.Measure and Window.Arrange will make all values to be calculated, or you can... ...
分类:
其他好文 时间:
2018-08-30 13:18:59
阅读次数:
181
Option Explicit Private Type PROCESS_INFORMATION hProcess As Long hThread As Long dwProcessId As Long dwThreadId As Long End Type Private Type STARTUP ...
分类:
其他好文 时间:
2018-08-30 10:55:46
阅读次数:
202
c++ operator操作符的两种用法 重载和隐式类型转换 今天学习OpenCV源码的时候碰到这种写法: template operator std::vector() const; template operator Vec() const; template operator Matx() c ...
分类:
其他好文 时间:
2018-08-28 20:27:09
阅读次数:
162
一些小补充: 1.完全等价于如下三种形式: ? if(msg.sender != owner) { revert(); } ? assert(msg.sender == owner); ? require(msg.sender == owner); 正确才可往下走(1)revert() 和 requ ...
分类:
其他好文 时间:
2018-08-27 18:26:31
阅读次数:
314
```C++ struct TreeNode { int val; TreeNode* left; TreeNode* right; explicit TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} }; void trimLef... ...
分类:
编程语言 时间:
2018-08-26 16:52:11
阅读次数:
366
import this The Zen of Python, by Tim Peters Beautiful is better than ugly.Explicit is better than implicit.Simple is better than complex.Complex is b ...
分类:
编程语言 时间:
2018-08-25 20:05:55
阅读次数:
150
Excel.Application组件使用方法,适合应用于使用EXCEL组件做WEB应用开发。 转自http://bbs.xtjc.com/thread-376095-1-1.html 定制模块行为(1) Option Explicit '强制对模块内所有变量进行声明 Option Private ...
分类:
移动开发 时间:
2018-08-25 19:02:50
阅读次数:
211
打开powerdesigner,shift + ctrl + X 打开脚本窗口 输入执行的脚本,点 run 即可。 简单的导入Excel脚本 '开始 Option Explicit Dim mdl ' the current model Set mdl = ActiveModel MsgBox "当 ...
分类:
其他好文 时间:
2018-08-22 20:43:51
阅读次数:
207