title: how to make a character move in c++
body: <p>So I'm trying to make a maze game in c++. The code below is what I have so far, but I'm looking to make a character in the game able to move using the arrow keys. </p>
  
  <p>Should I be using a getch() command, a ReadInputConsole() command? I've been doing lots of research but it's all very unclear. </p>
  
  <p>Any help would be appreciated!</p>
  
  <pre><code>#include "stdafx.h"
  #include &lt;iostream&gt;
  #include &lt;windows.h&gt;
  #include &lt;fstream&gt;
  #include &lt;conio.h&gt;
  #include &lt;stdio.h&gt;
  
  using namespace std;
  
  void maze1();
  void maze2();
  void welcome();
  
  char ch;
  
  int main()
  {
      int enter;
  
     welcome();
  
      cin &gt;&gt; enter;
  
      if (enter == 1)
      {
        system("CLS"); // clear screen
        maze1();
      } 
  
     system("pause");
      return 0;
  
  }
  
  void welcome()
  {
     cout &lt;&lt; " Welcome to my Maze Game!\n\n";
      cout &lt;&lt; "In order to win this game, you must make your\n";
      cout &lt;&lt; " way through the maze and find the O. \n";
      cout &lt;&lt; " Try to get the best time you can to be number 1!\n\n";
      cout &lt;&lt; " Warning! Don't touch the walls or you will \n";
      cout &lt;&lt; " lose points!\n ";
      cout &lt;&lt; " Goodluck and have fun!\n\n\n\n";
      cout &lt;&lt; " Press 1 to begin";
  
  
  } 
  
  void maze1 ()
  {
      int begin;
  
      do // do-while loop starts
      {
  
      cin &gt;&gt; begin; // take in input
  
          if(begin == 1) // temporary option to check for next screen
              {
  
                  ifstream fin;
                  fin.open("lvl1.txt");
  
                  char ch;
  
                  while (!fin.eof())
                   {
                     fin.get(ch);
                     cout &lt;&lt; ch;
                   }
  
                    fin.close();
               }
            else
              {
                  cout &lt;&lt; "Sorry, you entered the wrong key.";
               }
  
          }
      while( begin !=1); // condition of do-while loop
  
  }
  
  void maze2 ()
  {
    ifstream fin;
      fin.open("lvl2.txt");
  
          char ch;
  
      while (!fin.eof())
      {
        fin.get(ch);
        cout &lt;&lt; ch;
      }
  
      fin.close();
  }
  </code></pre>