I am trying to write a program that creates a magic square of two dimensions. The size of the array needs to be decided by the user so it can't be predefined. I've come across a few different ways to allocate memory for a 2 dimensional array but none without a predetermined size. Is there a way to get this to work?
THANK YOU!Code:int main(void) { int order; double TwoDimArray[order][order]; cout <<"This program will create a magic square of an odd order\n"; cout <<"Please enter the order number you would like:\n"; cin >> order;



LinkBack URL
About LinkBacks



