﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>BBS.PROGENIC.COM / Chat / Coding  / Computer Programming help for class. / Latest Posts</title><generator>InstantForum.NET v4.1.2</generator><description>BBS.PROGENIC.COM</description><link>http://bbs.progenic.com/</link><webMaster>noreply@progenic.com</webMaster><lastBuildDate>Sun, 23 Nov 2008 10:31:20 GMT</lastBuildDate><ttl>20</ttl><item><title>Computer Programming help for class.</title><link>http://bbs.progenic.com/Topic14200-9-1.aspx</link><description>This is my first year of computer programming and will be my last in high school.  Last 9 weeks I came up with a  73% C.....which I usually make a 3.5 GPA overall so it really sucked.  I need help ladies and gentlemen.  &lt;br&gt;&lt;br&gt;Basically, I can ask my teacher for help, but he shrugs his shoulders and walks away.  That or he'll explain a bunch a shit that doesn't make since.  I feel like I'm lost, I really do.&lt;br&gt;&lt;br&gt;&lt;i&gt;Here's my latest assignment.&lt;/i&gt;&lt;a href="http://img221.imageshack.us/my.php?image=img001ww2.jpg" target="_blank" class="SmlLinks"&gt;&lt;img src="http://img221.imageshack.us/img221/6706/img001ww2.th.jpg"&gt;&lt;/a&gt;&lt;i&gt;We are learning C++ and we use C++ Builder 4.  Below is my current form/application of project 2 of my assignment so far.&lt;/i&gt;&lt;a href="http://img85.imageshack.us/my.php?image=proj2qw0.jpg" target="_blank" class="SmlLinks"&gt;&lt;img src="http://img85.imageshack.us/img85/2725/proj2qw0.th.jpg"&gt;&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;u&gt;FINALLY, here is my code for that "generate" button (Button1).&lt;/u&gt;&lt;br&gt;#include &lt;stdlib.h&gt;&lt;br&gt;&lt;br&gt;void __fastcall TForm1::Button1Click(TObject *Sender)&lt;br&gt;{&lt;br&gt;  int a, b, c;&lt;br&gt;&lt;br&gt;  a = Edit1-&gt;Text.ToInt();&lt;br&gt;&lt;br&gt;  c = 0;&lt;br&gt;&lt;br&gt;&lt;br&gt;  while (b != a)&lt;br&gt;  {&lt;br&gt;    b = random (100) + 1;&lt;br&gt;    Label4-&gt;Caption = Label4-&gt;Caption + b;&lt;br&gt;    c++;&lt;br&gt;  }&lt;br&gt;    Label4-&gt;Caption = Label4-&gt;Caption +, " ";&lt;br&gt;}&lt;br&gt;//---------------------------------------------------------------------------&lt;br&gt;void __fastcall TForm1::FormCreate(TObject *Sender)&lt;br&gt;{&lt;br&gt;  randomize();        &lt;br&gt;}&lt;br&gt;//---------------------------------------------------------------------------</description><pubDate>Mon, 31 Mar 2008 20:03:07 GMT</pubDate><dc:creator>Sorrow667</dc:creator></item></channel></rss>