-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy path例程_我心忆旧.cpp
72 lines (47 loc) · 1.32 KB
/
例程_我心忆旧.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// 我心忆旧 2020-03-31
//---------------------------------------------------
// VS 2019 中文代码
//---------------------------------------------------
#include <iostream>
#include <array>
#include <time.h>
#include <cstdlib>
#include "中文.h"
静态数组<int, 30> 数组A = {};
整数 主函数()
{
clock_t 开始, 结束,随机种子;
开始 = clock();
打印<< "类型:" << " 静态数组 " << "\r\n";
循环 (auto& i : 数组A)
{
随机种子 = clock();
srand(随机种子);
i= rand();
打印 << "i:" << " / "<< i <<"\r\n";
}
打印<< "时间结束:" << 结束 - 开始 << " / " << "\r\n";
暂停;
暂停;
返回 0;
}
//--------------------------------------------------------------
// 项目中已上线的中英混合脚本
//--------------------------------------------------------------
声明 日期集合=[];
声明 ABC=[];
循环 (w,s in aaa)
{
if(s[2]=="企业名称" && s[9].到浮点数()>99)
{
日期集合.添加(s[7].到文本());
}
}
ABC=日期集合.去除重复(@(a,b)a==b);
声明 新文本=“”;
FOR (w,s in ABC)
{
新文本=新文本+s.到文本()+“\r\n";
}
脚本取文本(新文本);
//--------------------------------------------------------------