Skip to main content
GameDev.net gamedev.net
🔒 Locked

new 2D array

Started by randomDecay Dec 18, 2001 at 12:26 PM 0 replies 350+ views
Original Post
randomDecay
randomDecay
can anyone tell me what''s going on here, I''m getting an error: char *words[ BUF_SIZE ][ BUF_SIZE ]; ... words = new char[ 2 ][ 2 ]; //cannot convert from char(*)[2] to char *[128][128] I don''t know how to fix this, please help, thanks tons.
Russell
Russell
I''m not exactly sure what the problem is, but I''m assuming from your error that you can''t assign a pointer to memory on the stack to a pointer to memory of a differnt size on the heap.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.