c++ 栈内数组读写效率 v.s. 堆上数组读写效率
摘要:函数内定义的数组都在栈内存上。 new 出来的数组在堆内存上(栈上的指针指向它们)。 想知道这两种方法定义的数组的读写效率,写了个小实验程序: #include<iostream> using namespace std; #include<cmath> #include<time.h> #defi
阅读全文
posted @ 2019-03-11 18:06
posted @ 2019-03-11 18:06
posted @ 2019-03-11 16:32
posted @ 2019-03-09 22:01
posted @ 2019-03-09 14:07
|
|||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
---|---|---|---|---|---|---|---|---|---|
26 | 27 | 28 | 29 | 30 | 31 | 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 | 1 | |||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
Powered by:
博客园
Copyright © 2025 luyi07
Powered by .NET 9.0 on Kubernetes