r****t 发帖数: 10904 | 1 转成 lower case 以后,wstring 有 operator- 没有?如果没有的话做成 union
{wstring, long long...},或者 cast 成足够大的整数,然后用整数相减行不行呢?或者
derive wstring 实现减法也行。
is
on
scratch
Scaled
boost.
ie
under |
|
h*******e 发帖数: 1377 | 2 看windows programming 最初unicode 就是wstring 之类的吧比正常 长两倍定义函数
全用 w**就行了。。现在的unicode 不知道怎么处理的。。一些oj里面 似乎普通函数
就能读入汉字。。只要顺序输出就行了。。。 |
|
|
|
|
S******o 发帖数: 111 | 6 很多问题有专门的相关版面。看看这个snapshot,显得杂了一点。我和板斧都比较菩萨
心肠,不过大家发贴也注意相关性啊。
● Help:关于文件打印的问题(845b) 0/23 bqf2006
2006-12-12 --
2 * ● 有无指令可以peek tlb entry的?(73b) 0/30 Pontiff
2006-12-12 --
3 * ● reference vs. paper(41b) 2/148 unswee
2006-12-12 iamlucky
12-12 14:30
4 * ● 请问wstring这种string type适用于什么情况下?(11b) 3/106
eecareer
2006-11-12 NoDealToday
12-12 11:48
5 * ● visual studio books.(101b) 1/89 comgi
2006-12-06 NoDealToday
12-12 |
|
u**********e 发帖数: 282 | 7 好久没用C++了,都忘光了。
大家帮忙解释一下下面ERROR是怎么回事
1.1 typedef std::wstring TLogicalIdentity;
1.1 typedef std::pair TLogicalKey;
1.1 typedef std::pair TExternalData;
1.1 typedef std::vector TEntryList;
1.1 typedef std::map TPerIdentityStatus;
1.1 typedef std::map
TIdentityStatus;
gcc3.4.5
In file included from ../../../DevTests/AssociativeCont |
|
d****p 发帖数: 685 | 8 The string comes as wstring, not string.
Do you see better algorithm? The function is called so many times since it
is used to compare keys in a lot of maps. |
|
d****p 发帖数: 685 | 9 casting wstring to large integer is a very interesting concept.thanks.
?或者 |
|
k**********g 发帖数: 989 | 10 Two more tips.
(1) Precompiled header. "stdafx.h"
Basically, this is the place where you put all standard library include
directives that will be needed by your code.
Examples:
// OS includes
#include
// C includes
#include
// C++ STL includes
#include
#include
Try not to include any of your own header files in "stdafx.h", until you are
familiar with the Visual C++ build process.
Never modify "stdafx.cpp". It is required to be an empty file containing
jus... 阅读全帖 |
|