title: How to read information from file to a matrix?
body: <p>I tried to do this, but this didnt work...</p>
  
  <pre><code>#include &lt;iostream&gt; 
  #include &lt;conio.h&gt;
  #include &lt;fstream&gt;
  
  using namespace std; 
  
  void afisare(int place[9][9]){
      for(int i = 0; i&lt;9;i++){
          for(int j =1; j&lt;9;j++){
              cout &lt;&lt; place[i][j] &lt;&lt; " ";
          }
          cout &lt;&lt; endl;
      }
  }
  
  int main(){
      ifstream fin;
      int place[9][9],n,j = 0; 
      string s;
  
      fin.open("file.in");
          for(int i = 0; i &lt; 9; i++){
              for(int j = 0; j &lt; 9; j++){
                  fin &gt;&gt; place[i][j];
              }
          } 
      fin.close();
  
      afisare(place);
      _getch();
      return 0;
  }
  </code></pre>
  
  <p>and this show me that
  <a href="https://i.stack.imgur.com/3tESK.png" rel="nofollow noreferrer">enter image description here</a>
  when this need to show that
  <a href="https://i.stack.imgur.com/2zSqs.png" rel="nofollow noreferrer">enter image description here</a>
  help me please. :*|</p>