title: the code will not display any number input into it. how to make it so it will display whatever is the input?
body: <p>I'm doing a 3d array in c++ using day, hour and minutes where the user can put in any number and it will display as day:hour:minute the problem is the code will not display any given number.  </p>
  
  <p>I have tried setting the days, hour and minute in the for loops to 1 and that works but only when 1 is inputed any other number will not run</p>
  
  <pre><code>int main()
  {
      float temp[365][24][23] = { 0.0 };// this sets the array to have no more then 365 days-change temp to days
      char stop = 'n';
      int hour = 1;
      int min = 1;
      int dayz = 1; // will change i to temp
      do
      {
          std::cout &lt;&lt; "please give me a day from 1-365" &lt;&lt; std::endl;//tells users that 1-365 days are needed
          std::cin &gt;&gt; dayz;
  
          std::cout &lt;&lt; "plese give me a number from 1-24 hours  " &lt;&lt; std::endl;//tells users that 1-365 days are neede
          std::cin &gt;&gt; hour;
  
          std::cout &lt;&lt; "please give me the minute" &lt;&lt; std::endl;//tells users that 1-365 days are needed
          std::cin &gt;&gt; min;
  
          std::cout &lt;&lt; "enter the temperature for today" &lt;&lt; " = "; //prompt users to keep on giving temperatures
          std::cin &gt;&gt; temp[dayz][hour][min];
  
          std::cout &lt;&lt; "If you want to end the program type N.If you dont then type any number" &lt;&lt; std::endl; // tells users after date and temperatures are entered if the they want to stop type 0 and if not press anynumber
          std::cin &gt;&gt; stop;
      } while (stop != 'N' &amp;&amp; stop != 'n');
  
      for (dayz = 0; dayz &lt;=364; ++dayz)// makes the calendar and keeps it less then 366 issue is that it will show the same date multiple time
      {
          for (hour = 0; hour &lt;=23; ++hour)// keeps the calendar orderly      
          {
              for (min = 0; min &lt;= 22; ++min)
              {
                  if (temp[dayz][hour][min] != 0.0)
                  {
  
                      std::cout &lt;&lt; dayz &lt;&lt; ":" &lt;&lt; hour &lt;&lt; ":" &lt;&lt; min &lt;&lt; " = " &lt;&lt; temp[dayz][hour][min] &lt;&lt; "/t "; //will display all the input
                  }
              }
              return 0;
          }
      }
  }
  </code></pre>