I'm converting my code from linux c++ to visual c++. Previously I calculated my array size is in the program, then declared it. For example, I'd read a couple numbers from a file, multiply them, and declare: double matrix[number]; I'm having trouble doing this in visual c++. Is there a way to do this, or do i have to use the dynamic allocation method?