aboutsummaryrefslogtreecommitdiff
path: root/Project1/c_array.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project1/c_array.cpp')
-rw-r--r--Project1/c_array.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/Project1/c_array.cpp b/Project1/c_array.cpp
index 962c785..d6b006d 100644
--- a/Project1/c_array.cpp
+++ b/Project1/c_array.cpp
@@ -1,7 +1,7 @@
#include <iostream>
#include <ostream>
#include "c_array.h"
-#include <string.h>
+
using std::cin;
using std::cout;
@@ -24,10 +24,11 @@ void DoubleArraySize(int*& array, size_t SIZE)
//memset(array, 0, SIZE * sizeof(array));
SIZE *= 2;
- //for (auto i = 102u; i < SIZE; ++i)
- //{
- // memset(array, 0, SIZE * sizeof(array));
- //}
+ for (auto i = 101u; i < SIZE; ++i)
+ {
+ array[i] = 0;
+ }
+
PrintArray(array, SIZE);
}