title: program using string function
body: <p>i have a program of string, the program running, but the output is not right, i mean no identity of the condition, help me please..
  so if any one can running the program please put it here</p>
  
  <pre><code>    #include &lt;iostream&gt;
  #include &lt;conio.h&gt;
  #include &lt;string&gt;
  using namespace std;
  
  int main()
  {
      double hour;
      char s1 [20]={'e','n','t','e','r',' ','a','n',' ','h','o','u','r'};
      char s2 [15]={'g','o','o','d',' ','m','o','r','n','i','n','g'};
      char s3 [15]={'g','o','o','d',' ','a','f','t','e','r',' ','n','o','o','n'};
      char s4 [15]={'g','o','o','d',' ','e','v','e','n','i','n','g'};
      char s5 [20];
      char s6 [15];
      strcpy (s5,s1);
      cout&lt;&lt;s5;
      cin&gt;&gt;hour;
      if(hour &gt;= 6 &amp;&amp; hour &gt;=11.40)
      strcpy (s6,s4);
      cout&lt;&lt;s6;
      if (hour &gt;= 11.41 &amp;&amp; hour &lt;= 12.59)
      if(hour &gt;=1 &amp;&amp; hour &lt;=4.30)
      strcpy (s5,s3);
      cout&lt;&lt;s5;
      if(hour &gt;= 4,31 &amp;&amp; hour &lt;= 5.59)
      strcpy (s5, s4);
      cout&lt;&lt;s5;
  
      strlen (s6);
      cout&lt;&lt;"every characters in the string is"&lt;&lt;s6;
  
  
      getch ();
      return 0;
  }
  </code></pre>