я написал вот такую программку:
//includes
#include <iostream>
#include <chrono>
#include <string>
#include <ctime>
//namespaces
using namespace std;
using namespace chrono;
//defines
#define RETURN return 0
//main
int main() {
setlocale(LC_ALL,"ru"); //locale
const auto _BEFORE_ = high_resolution_clock::now(); //start timer (for time account)
srand(time(0));
//Create Array
int CountArrayIn_arr2D = 2;
int CountElementsIn_arr1D = 3;
int **arr2D = new int*[CountArrayIn_arr2D];
//Generate Array
for(int i = 0; i < CountArrayIn_arr2D; i++) {
for(int j = 0; j < CountElementsIn_arr1D; j++) {
arr2D[i][j] = rand() % 30 + 1;
}
}
//Print Array
for(int i = 0; i < CountArrayIn_arr2D; i++) {
for(int j = 0; j < CountElementsIn_arr1D; j++) {
cout<<"\033[34m"<<arr2D[i][j]<<"\033[0m\t";
}
cout<<endl;
}
/*Clean memory*/
for(int i = 0; i < CountArrayIn_arr2D; i++) {
delete[] arr2D[i];
}
delete[] arr2D;
//time account
const auto _AFTER_ = high_resolution_clock::now();
const float TIME_FOR_PROGRAM = duration_cast<milliseconds>(_AFTER_-_BEFORE_).count();
cout<<"\n\n Programm completed in "<<TIME_FOR_PROGRAM<<"ms"<<endl;
RETURN;
}
у меня 2 вопроса. 1) что значит стек сброшен на диск? на жесткий диск? удалится ли он самостоятельно? если нет то как удалить? 2) как это решить и почему это вообще произошло?