<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>cin</title>
		<link>http://www.allegro.cc/forums/view/589930</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Fri, 09 Feb 2007 03:18:38 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>using allegro keyboard functions kills cin. It is possible, though time-consuming and slightly complicated (especially for noobs like me) to make a routine to recieve input, but why should we have to? Why does allegro not include a replacement function for cin? It supplies, like, a dozen for cout, so why not cin? It&#39;s just confusing.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Black)</author>
		<pubDate>Tue, 06 Feb 2007 21:17:59 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>1.) This is not a comment about Allegro.cc<br />2.) Name your threads better<br />3.) <a href="http://www.allegro.cc/manual/api/gui-routines/">RTFM</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Tue, 06 Feb 2007 21:20:27 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Huh dude.<br />Just do not install_keyboard() and use the routines you want for keyboard input.<br />What CGamesPlay said.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (GullRaDriel)</author>
		<pubDate>Tue, 06 Feb 2007 21:20:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Okay, I&#39;ll shut up... right after I do this</p><p>ISN&#39;T IT REALLY ANNOYING WHEN PEOPLE TYPE IN ALL CAPS?!?!?!?!</p><p>oh, um, edit:<br />I put this in the wrong darn forum, too. Sorry.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Black)</author>
		<pubDate>Tue, 06 Feb 2007 21:28:56 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Just to make sure you understand the basic principle:</p><p>You create a dialog with a textbox in it and once the dialog is dismissed read the value of the textbox.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Tue, 06 Feb 2007 21:55:08 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>See <a href="http://molhanec.net/allegro.php">gstream</a> if you are looking for a C++ way to handle input and output with Allegro. In short, it looks like this:
</p><div class="source-code"><div class="toolbar"></div><div class="inner"><table width="100%"><tbody><tr><td class="number">1</td><td>  <span class="p">#include &lt;gstream&gt;</span></td></tr><tr><td class="number">2</td><td>&#160;</td></tr><tr><td class="number">3</td><td>  <span class="k1">int</span> main<span class="k2">(</span><span class="k2">)</span></td></tr><tr><td class="number">4</td><td>  <span class="k2">{</span></td></tr><tr><td class="number">5</td><td>   <a href="http://www.allegro.cc/manual/allegro_init" target="_blank"><span class="a">allegro_init</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span></td></tr><tr><td class="number">6</td><td>   <span class="k1">if</span> <span class="k2">(</span><a href="http://www.allegro.cc/manual/set_gfx_mode" target="_blank"><span class="a">set_gfx_mode</span></a><span class="k2">(</span>GFX_AUTODETECT, <span class="n">320</span>, <span class="n">200</span>, <span class="n">0</span>, <span class="n">0</span><span class="k2">)</span> <span class="k3">&lt;</span> <span class="n">0</span><span class="k2">)</span></td></tr><tr><td class="number">7</td><td>     <span class="k1">return</span> <span class="n">1</span><span class="k2">;</span></td></tr><tr><td class="number">8</td><td>&#160;</td></tr><tr><td class="number">9</td><td>   <a href="http://www.allegro.cc/manual/install_keyboard" target="_blank"><span class="a">install_keyboard</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>   <span class="c">// when you use the inputter, you also have to</span></td></tr><tr><td class="number">10</td><td>                         <span class="c">// initialise the keyboard</span></td></tr><tr><td class="number">11</td><td>&#160;</td></tr><tr><td class="number">12</td><td>   gstream gs<span class="k2">;</span>           <span class="c">// once again construct gs</span></td></tr><tr><td class="number">13</td><td>&#160;</td></tr><tr><td class="number">14</td><td>   gs <span class="k3">&lt;</span><span class="k3">&lt;</span> <span class="s">"Try inputting a number: "</span><span class="k2">;</span></td></tr><tr><td class="number">15</td><td>&#160;</td></tr><tr><td class="number">16</td><td>   <span class="k1">int</span> number<span class="k2">;</span>           <span class="c">// define a number</span></td></tr><tr><td class="number">17</td><td>   gs <span class="k3">&gt;</span><span class="k3">&gt;</span> number<span class="k2">;</span>         <span class="c">// get it</span></td></tr><tr><td class="number">18</td><td>&#160;</td></tr><tr><td class="number">19</td><td>   gs <span class="k3">&lt;</span><span class="k3">&lt;</span> <span class="s">"\nYou wrote the number: "</span> <span class="k3">&lt;</span><span class="k3">&lt;</span> number<span class="k2">;</span> <span class="c">// print it</span></td></tr><tr><td class="number">20</td><td>&#160;</td></tr><tr><td class="number">21</td><td>   gs <span class="k3">&lt;</span><span class="k3">&lt;</span> flush<span class="k2">;</span>          <span class="c">// remember to flush</span></td></tr><tr><td class="number">22</td><td>&#160;</td></tr><tr><td class="number">23</td><td>   <a href="http://www.allegro.cc/manual/readkey" target="_blank"><span class="a">readkey</span></a><span class="k2">(</span><span class="k2">)</span><span class="k2">;</span>            <span class="c">// wait for a key to be pressed</span></td></tr><tr><td class="number">24</td><td>&#160;</td></tr><tr><td class="number">25</td><td>   <span class="k1">return</span> <span class="n">0</span><span class="k2">;</span></td></tr><tr><td class="number">26</td><td>  <span class="k2">}</span></td></tr></tbody></table></div></div><p>
I&#39;ve never used it and do not know how flexible it is. Note that you&#39;ll need to build the library yourself. (Or if you are using Dev-C++, install the DevPak.)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Tue, 06 Feb 2007 22:51:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;ve <a href="http://cgamesplay.com/dearth">looked into it</a> but if I remember correctly I found it too much overhead for too simple a task.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Tue, 06 Feb 2007 23:04:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Yay, I am using Dev-C++! Dev-packs really simplify things.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Black)</author>
		<pubDate>Wed, 07 Feb 2007 20:00:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
Yay, I am using Dev-C++! Dev-packs really simplify things.
</p></div></div><p>

You can also use the Dev-paks with Code::blocks, which means you get the simplicity as well as a decent IDE.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Wed, 07 Feb 2007 20:03:17 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I tried using codeblocks back in it&#39;s RC1 stage and wasn&#39;t too impressed. That was a long time ago (seems that way at least <img src="http://www.allegro.cc/forums/smileys/wink.gif" alt=";)" />  </p><p>LennyLen, has it improved much?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Samuel Henderson)</author>
		<pubDate>Thu, 08 Feb 2007 01:08:16 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
LennyLen, has it improved much?
</p></div></div><p>

Greatly. I only just started using it recently because I also wasn&#39;t impressed when I first looked at it years ago. Now I&#39;m glad I gave it another shot. Visual Studio is the only IDE I&#39;ve ever used that is better.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (LennyLen)</author>
		<pubDate>Thu, 08 Feb 2007 01:40:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It&#39;s too bad gstream&#39;s input doesn&#39;t work well when your using other graphics along with it.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (julian_boolean)</author>
		<pubDate>Fri, 09 Feb 2007 03:18:38 +0000</pubDate>
	</item>
</rss>
