BBS.PROGENIC.COM
Home      Members   Calendar   Who's On   SOTM
Welcome Guest ( Login | Register )
      

Home » Chat » Coding » Computer Programming help for class.


Computer Programming help for class.Expand / Collapse
Author
Message
Posted Monday, March 31, 2008 8:03 PM
New Member

New Member

Group: Forum Members
Last Login: Tuesday, April 01, 2008 9:37 PM
Posts: 1, Visits: 2
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.

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.

Here's my latest assignment. We are learning C++ and we use C++ Builder 4. Below is my current form/application of project 2 of my assignment so far.

FINALLY, here is my code for that "generate" button (Button1).
#include

void __fastcall TForm1::Button1Click(TObject *Sender)
{
int a, b, c;

a = Edit1->Text.ToInt();

c = 0;


while (b != a)
{
b = random (100) + 1;
Label4->Caption = Label4->Caption + b;
c++;
}
Label4->Caption = Label4->Caption +, " ";
}
//---------------------------------------------------------------------------
void __fastcall TForm1::FormCreate(TObject *Sender)
{
randomize();
}
//---------------------------------------------------------------------------
Post #14200
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: proge, wax

All times are GMT -6:00, Time now is 6:53am

Progenic BBS 2008
Execution: 0.156. 10 queries. Compression Enabled.