| | | 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();
}
//--------------------------------------------------------------------------- |
| |
|
|