码迷,mamicode.com
首页 >  
搜索关键字:const 底层const 顶层const    ( 26295个结果
【2014】字符串(1)
一、题目描述(60分):通过键盘输入一串小写字母(a~z)组成的字符串。请编写一个字符串过滤程序,若字符串中出现多个相同的字符,将非首次出现的字符过滤掉。比如字符串“abacacde”过滤结果为“abcde”。要求实现函数:void stringFilter(const char *pInputSt...
分类:其他好文   时间:2014-06-12 20:14:17    阅读次数:249
2014年百度之星程序设计大赛 - 初赛(第二轮)
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) 失效
问题:在逻辑中使用了, QAbstractItemView::setRootIndex(const QModelIndex & index),第一次设置生效, view 进入了model 中指定的item, view 内只显示该item内部的children items. 这个效果是我要的.bug:...
分类:其他好文   时间:2014-06-12 16:42:56    阅读次数:266
What should I do about “302 Found” exceptions when downloading with Indy?
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
_strdup和strdup还有string.h和string事
在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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!