<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Sentence Generator using arrays C++' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Sentence Generator using arrays C++' posted on the 'Basic' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Tue, 18 Jun 2013 23:43:31 -0700</pubDate>
    <lastBuildDate>Tue, 18 Jun 2013 23:43:31 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Sentence Generator using arrays C++</title>
      <link>http://www.programmersheaven.com/mb/basic/431239/431239/sentence-generator-using-arrays-c++/</link>
      <description>I'm having trouble trying to figure out this program could anyone help?&lt;br /&gt;
Here's the code I've written so far&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;iostream&amp;gt;&lt;br /&gt;
#include &amp;lt;string&amp;gt;&lt;br /&gt;
#include &amp;lt;cstdlib&amp;gt;&lt;br /&gt;
#include &amp;lt;ctime&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
using namespace std;&lt;br /&gt;
void sentenceGenerator (char noun[], char verb[], char subject[])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
int main()&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
	const int MAX_SENTENCE = 5 ;&lt;br /&gt;
	string sentence[MAX_SENTENCE] ;&lt;br /&gt;
&lt;br /&gt;
	char noun[5] = {"Dog", "He", "She", "Bill", "Jane",  } ;&lt;br /&gt;
	char verb[5] = {"Hops", "Runs", "Hugs", "Jumps", "Skips",  } ;&lt;br /&gt;
	char subject[5] = {"Pond", "Road", "Bill" ,"Jane", "Spike",  } ;&lt;br /&gt;
&lt;br /&gt;
	srand(static_cast&amp;lt;unsigned int&amp;gt;(time(0)))); &lt;br /&gt;
	int randomChar = rand();&lt;br /&gt;
	&lt;br /&gt;
	cout &amp;lt;&amp;lt; "The sentence: \n" ;&lt;br /&gt;
	for (int i = 0; i &amp;lt; sentence ; ++i)&lt;br /&gt;
	{&lt;br /&gt;
		cout &amp;lt;&amp;lt; sentence[i] &amp;lt;&amp;lt; endl ;&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/basic/431239/431239/sentence-generator-using-arrays-c++/</guid>
      <pubDate>Sat, 09 Feb 2013 17:40:47 -0700</pubDate>
      <category>Basic</category>
    </item>
  </channel>
</rss>