一、题目描述(60分):通过键盘输入一串小写字母(a~z)组成的字符串。请编写一个字符串过滤程序,若字符串中出现多个相同的字符,将非首次出现的字符过滤掉。比如字符串“abacacde”过滤结果为“abcde”。要求实现函数:void
stringFilter(const char *pInputSt...
分类:
其他好文 时间:
2014-06-12 20:14:17
阅读次数:
249
1001暴力#include #include #include using namespace
std;const int maxn = 100100;int ll[maxn], rr[maxn];struct node{ int x, y,
bj;}e[maxn];int main(){ int...
分类:
其他好文 时间:
2014-06-12 18:51:11
阅读次数:
238
问题:在逻辑中使用了,
QAbstractItemView::setRootIndex(const QModelIndex & index),第一次设置生效, view
进入了model 中指定的item, view 内只显示该item内部的children items. 这个效果是我要的.bug:...
分类:
其他好文 时间:
2014-06-12 16:42:56
阅读次数:
266
Set theTIdHTTP.HandleRedirectsproperty to True.
It is False by default.function FetchUrl(const url: string): string; var idhttp
: TIdHTTP; begin id...
分类:
其他好文 时间:
2014-06-12 14:53:09
阅读次数:
286
在MSVC中,_strdup(const char
*p)函数的作用是返回一个指针,这个指针指向p的一个复制串。#includeint main(){ char str[]="this is a string";
char *dstring=strdup(str); std::co...
分类:
其他好文 时间:
2014-06-12 14:26:37
阅读次数:
277