title: C++ - How to print this correctly?
body: <p>I'm programming a small game in C++ (Tic Tac Toe), and have a problem while printing the board.</p>
  
  <p>Here's the code ("syntax.h" is a header file with functions such as print, println, input):</p>
  
  <pre><code>#include "syntax.h" // contains helpful functions such as "print" and "println" to shorten code
  
  char board[3][3];
  void print_board();
  
  int main()
  {
      print_board();
  }
  void print_board()
  {
      for (int i = 0; i &lt; 3; i++)
      {
          println("-------");
          for (int j = 0; j &lt; 3; j++)
          {
              print("|" + board[i][j] + " "); // ERROR - Cannot add two pointers
          }
          println("|");
      }
      println("-------");
      input();
  }
  </code></pre>
  
  <p><code>print</code> is a function in "syntax.h" that receives a string variable and prints it with <code>cout</code>, and then flushes the output buffer.</p>
  
  <p>Now, I cannot print a string like above because it tells me I cannot add two pointers. </p>
  
  <p>I understand why it happens, and thats because the "" in the print parameters are actually <code>char*</code> and not <code>string</code> variables, and I cannot add them together.</p>
  
  <p>The problem is that I also don't want to make another print function call, and print all these 3 string in this same function call.</p>
  
  <p>So how am I supposed to print this above without the error?</p>