How to load a text file with fixed dimensions into a 2D array

后端 未结 0 620
失恋的感觉
失恋的感觉 2020-12-31 23:33

Suppose I have fixed contents like this in a text file, and a 2D array with the same dimensions ([4][4])

   0 2 0 0 
   0 3 0 0 
   0 0 6 0 
   0 0 0 0 


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题