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