const issues
Could someone assist me in modifying the below code to make the 2D array get set. It keeps telling me I need to use a const:
1 2 3
|
h = atoi(rows.c_str()); //put into int value
w = atoi(cols.c_str()); //put into int value
a = new char[h][w]; //set the size of the 2D array
|
Thanks for any help
Topic archived. No new replies allowed.