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
计数排序//参考算法导论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
一、题目描述(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
(一)
一个继承体系的声明:
class Date {...};
class Customer {
public:
...
private:
string name;
Date lastTransaction;
};
class PriorityCustomer : public Customer {
public:
PriorityCustomer(const...
分类:
编程语言 时间:
2014-06-10 17:45:35
阅读次数:
289