title: cant creat shutdown windows program C++
body: <p>I want to creat a program which the user can insert time and prees enter and the windows shuts down  after the time runs out.<br />
  So that was the code I used to create build the program :</p>
  
  <pre><code>int main()
  {
      cout&lt;&lt;"enter time"&lt;&lt;endl;
      float m;
      cin&gt;&gt;m;
      system("shutdown -s -t m");
      return 0;
  }
  </code></pre>
  
  <p>And when I run it and enter the time it doesn't work
  So I think the problem because Search Results
  Quotation mark :)
  So I need your help guys to tell me about any code or any solution to creat this program :)</p>
  
  <p>Notice:
  I am rookie at learning C++ I mean I only began to study it since 3 weeks ago only and I learn it via tutorials from the internet </p>