title: 'y' is not recognized as an internal or external command
body: <p>I have a problem about command prompt. I have a C++/Qt GUI desktop application on windows 7. But I also need to run this application from command prompt 
  for example:</p>
  
  <p><code>myApp.exe -l myfile -ic</code>. </p>
  
  <p>I can launch and use my app functionality from command prompt successfully but if I need to take an input from user on command prompt, I can not take inputs. When I enter an input, output is</p>
  
  <blockquote>
  <pre><code>  Accept values? y(yes)n(no)
    y
   'y' is not recognized as an internal or external command,
    operable program or batch file.
  </code></pre>
  </blockquote>
  
  <p>I am taking user input like this:</p>
  
  <pre><code>char userResponse = 'n';
  std::cin &gt;&gt; userResponse;
  if (userResponse == 'y' || userResponse == 'Y' )
  {               
      ...             
  }
  
  emit myWorkDone();
  return false;
  </code></pre>
  
  <p>The problem is that program waits on waiting user input line. When myWorkDone signal is emitted, application quits for normal conditions.</p>
  
  <p>In main   </p>
  
  <pre><code> QApplication a(argc,argv);
  ...
  &gt; QObject::connect(&amp;argProcessor, SIGNAL(finishedProcessor()) ,&amp;a,    
  &gt; SLOT(quit()),Qt::QueuedConnection);
  &gt;     
  &gt;       return a.exec(); // Main application
  </code></pre>
  
  <p>How can I resolve this problem? </p>