¡@

Home 

c++ Programming Glossary: boardsizerow

C++ 2d array from .txt file

http://stackoverflow.com/questions/15931382/c-2d-array-from-txt-file

get the dimensions for the array. ifstream inputFile int boardSizeRow int boardSizeCol inputFile.open fileboard1.txt inputFile boardSizeRow.. int boardSizeCol inputFile.open fileboard1.txt inputFile boardSizeRow inputFile boardSizeCol inputFile.get char gameBoard 20 20 for.. inputFile.get char gameBoard 20 20 for int row 0 row boardSizeRow row for int col 0 col boardSizeCol col gameBoard row col inputFile.get..