- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 由数组的下表得到长度
<br />已知数组下表i和j(i < = j),问i到j的长度是多少(包括i和j)?<br />计算方法如下:<br />len = j - i + 1<br /> <br />例子:strFileName是一个包含后缀名,不包含路径的文件名(如:river.jpg),下面的代码能够得到它的后缀名:<br /> <br /> string strExtension;<br /> string::size_type posDot = strFileName.find_last_of('.');<br />
2011-01-12 13:58:00 679
原创 A tip for Windows 7 touch development
Windows 7 running on Touch PC works like this:Once the vertical scroll bar is enabled on a window and comes out to work, pressing finger inside the window dose not gernerate WM_LBUTTONDOWN message at once. That is different from using the mouse device(whil
2011-01-05 11:17:00 640
原创 通过手机键盘将字符串转换为数字的小程序
<br />#include "stdafx.h" #include <iostream> #include <vector> #include <algorithm> #include <string> int _tmain(int argc, _TCHAR* argv[]) { bool br = true; vector<string> vecPhotoNumber; vecPhotoNumber.push_back("abc"); vecPhotoNumber.pus
2011-01-04 18:28:00 1113
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人