<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>graphing calculator</title>
		<link>http://www.allegro.cc/forums/view/590679</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sat, 24 Mar 2007 04:26:03 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi, I&#39;m trying to make a simple graphing calculator. To make it easier I just decided to make it so you enter the x and y positions of the 2 dots instead of using the standered y = mx + b equation. The problem is that I&#39;m new to allegro and I don&#39;t know how to make it so that you enter a variable, it shows that variable, and then you enter the amount for another variable. So basically I want the program to look something like this. &gt;&gt;</p><p>                        enter the X position for first dot: variable<br />                        enter the Y position for first dot: variable2</p><p>                        enter the X position for second dot: variable3<br />                        enter the Y position for second dot: variable4</p><p>                                       </p><p>                                       Graph will go here</p><p>                                     .<br />                                       .<br />                                      dot 1<br />                                           .<br />                                             .<br />                                               dot 2<br />                                                 .<br />                                                   .  &lt;- line
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (chaseC)</author>
		<pubDate>Fri, 23 Mar 2007 09:20:41 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>You would get a reply if you actually asked a question. From where I&#39;m standing (sitting...), it looks like you just want people to write your program for you.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (James Stanley)</author>
		<pubDate>Fri, 23 Mar 2007 18:55:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title">Quote:</div><div class="quote"><p>
The problem is that I&#39;m new to allegro and I don&#39;t know how to make it so that you enter a variable, it shows that variable, and then you enter the amount for another variable.
</p></div></div><p>

You have to make your own input... to do so, try using either <span class="source-code"><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> or <span class="source-code"><a href="http://www.allegro.cc/manual/key" target="_blank"><span class="a">key</span></a></span><br /><a href="http://www.allegro.cc/manual/api/keyboard-routines/">Reference</a></p><p>To show the variable .. see <span class="source-code"><a href="http://www.allegro.cc/manual/textprintf_ex" target="_blank"><span class="a">textprintf_ex</span></a><span class="k2">(</span><span class="k2">)</span></span><br /><a href="http://www.allegro.cc/manual/api/text-output/">Reference</a></p><p>You are probably going to have to convert a string to a number so look up <span class="source-code"><a href="http://www.delorie.com/djgpp/doc/libc/libc_53.html" target="_blank">atof</a><span class="k2">(</span><span class="k2">)</span> <span class="k1">or</span> <a href="http://www.delorie.com/djgpp/doc/libc/libc_54.html" target="_blank">atoi</a><span class="k2">(</span><span class="k2">)</span></span> or so.</p><p>But since you are asking pretty much asking people to do this for you, as James stated, you probably won&#39;t get how to use this help.  Maybe you just needed a little push through the door to get started, hopefully that is the case and this will help.  I think everyone here recommends <a href="http://www.allegro.cc/manual/">http://www.allegro.cc/manual/</a> Go through that and click each link and read what each thing does.  You don&#39;t have to really understand it at this moment in time.  As you move along and want to do something your brain might trigger and be like &quot;I think there was something in the manual about that.&quot;
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Dalrymple)</author>
		<pubDate>Sat, 24 Mar 2007 04:26:03 +0000</pubDate>
	</item>
</rss>
