diff options
author | stderr64 <stderr64@null.net> | 2024-10-24 23:04:43 +0300 |
---|---|---|
committer | stderr64 <stderr64@null.net> | 2024-10-24 23:04:43 +0300 |
commit | ab607fc39b6dfc766f7481c33e5f1cf35a2f55d9 (patch) | |
tree | 56317bc3756fa1439f748fda422996c526a76b14 /bigarray/bigarray.cpp | |
download | experiments-ab607fc39b6dfc766f7481c33e5f1cf35a2f55d9.tar.gz experiments-ab607fc39b6dfc766f7481c33e5f1cf35a2f55d9.tar.zst |
Recreated repository
Diffstat (limited to 'bigarray/bigarray.cpp')
-rw-r--r-- | bigarray/bigarray.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bigarray/bigarray.cpp b/bigarray/bigarray.cpp new file mode 100644 index 0000000..5516db5 --- /dev/null +++ b/bigarray/bigarray.cpp @@ -0,0 +1,22 @@ +#include <iostream> +#include <string> +#include <array> +#include <cstring> +#include <cstdint> + +using namespace std; + +int main( int argc, char *args[] ){ + std::array <uint64_t, 500000>bigarray = {}; + uint64_t acount = 0; + for ( ; acount < 500000; acount++ ) + bigarray[acount] = acount; + acount = 0; + uint64_t arr_size = (uint64_t)bigarray.size(); + for ( ; acount < arr_size; acount++ ) + std::cout << bigarray[acount] << "\n"; + acount = 0; + arr_size = 0; + bigarray = {}; + return EXIT_SUCCESS; +} |