So i found out my next program will need a lot of memory, but want to figure an estimate of how much.
I first wanted to make an end_list[10000][100] array for the structure End, but since i only could get it working with [100][100] then i decided to make more structures and arrays but even that doesn't work.
So why and how will I be able to solve this?
Edit: Put system("pause") so I can check how much memory is taken, hopefully you have windows :PCode:#include <stdio.h> #include <string.h> #include <time.h> #include <iostream> #include <stdlib.h> using namespace std; int main() { struct Start {char A[5]; char B[100];}; struct End1 {char A[5]; char B[100];}; // struct End2 {char A[5]; char B[100];}; // struct End3 {char A[5]; char B[100];}; // struct End4 {char A[5]; char B[100];}; Start start_list[100]; End1 end_list1[100][100]; // End2 end_list2[100][100]; // End3 end_list3[100][100]; // End4 end_list4[100][100]; system("pause"); }