¡@

Home 

c++ Programming Glossary: boardsizecol

C++ 2d array from .txt file

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

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