码迷,mamicode.com
首页 >  
搜索关键字:es6 let const    ( 43838个结果
IOS学习笔记---C语言第四天
1 //?生成2个数组,每个数组都有10个元素,元素取值范围20-40之间,数组对应元素相 加,放到另外?一个数组中 2 #import 3 4 int main(int argc, const char * argv[]) 5 { 6 7 int num1[10]={0},...
分类:移动开发   时间:2014-06-13 06:53:27    阅读次数:245
counting sort 计数排序
//counting sort 计数排序//参考算法导论8.2节#include#include#include#includeusing namespace std;const int k=5;const int n=7;int a[n]={5, 5, 1, 2 , 5, 4, 1};int b[...
分类:其他好文   时间:2014-06-12 23:08:11    阅读次数:237
【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
Effective C++:条款12:复制对象时勿忘其每一个成分
(一) 一个继承体系的声明: class Date {...}; class Customer { public: ... private: string name; Date lastTransaction; }; class PriorityCustomer : public Customer { public: PriorityCustomer(const...
分类:编程语言   时间:2014-06-10 17:45:35    阅读次数:289
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!