Help Me With This Roulette

hello my name is mike and I am doing a simulation of a roulette .. that is, it is an American roulette .. and this is played by the hours of drawing, these comprise 10:00 am 11 am 12 pm 1 pm 4 pm 5pm 6pm and 7pm
here you can see the code, but I have a error .. I still do not know much about c ++ so I would like you to give me your help because it is very important for me. thank you.



using namespace std;


private: system:: void btnAleatorio_Click(system::Object^ sender, system:: EventArgs^ e)
{


Random^ Aleatorio = gcnew Random ();

int Numero [8];

for (int Contar = 0; Contar < 8; Contar++)
{
Numero[Contar] = Aleatorio->Next(39);

label1->Text = Convert::ToString(Numero[0]);
label2->Text = Convert::ToString(Numero[1]);
label3->Text = Convert::ToString(Numero[2]);
label4->Text = Convert::ToString(Numero[3]);
label5->Text = Convert::ToString(Numero[4]);
label6->Text = Convert::ToString(Numero[5]);
label7->Text = Convert::ToString(Numero[6]);
label8->Text = Convert::ToString(Numero[7]);




}

}


private: system:: void btnAceptar_Click_1 (system::Object^ sender, system::EventArgs^ e)
{


for(unsigned int Semilla = 0; Semilla <= 100; Semilla++)
{
Random^ Aleatorio = gcnew Random (Semilla);
int Numero (8);
for (int Contar = 0; Contar < 8; Contar++)
{


Numero[Contar] = Aleatorio->Next(39);

if(Numero[0] .ToString() == textBox1->Text)
{

label9->Text = Convert:: ToString(Semilla);
}

if(Numero[1] .ToString() == textBox2->Text)
{

label10->Text = Convert:: ToString(Semilla);
}


if(Numero[2] .ToString() == textBox3->Text)
{

label11->Text = Convert:: ToString(Semilla);
}

if(Numero[3] .ToString() == textBox3->Text)
{

label12->Text = Convert:: ToString(Semilla);
}

if(Numero[4] .ToString() == textBox4->Text)
{

label13->Text = Convert:: ToString(Semilla);
}

if(Numero^[5] .ToString() == textBox5->Text)
{

label14->Text = Convert:: ToString(Semilla);
}

if(Numero[6] .ToString() == textBox6->Text)
{

label15->Text = Convert:: ToString(Semilla);
}

if(Numero[7] .ToString() == textBox7->Text)
{

label16->Text = Convert:: ToString(Semilla);
}

}

}
}

Random^ Aleatorio1 = gcnew Random ();
Random^ Aleatorio2 = gcnew Random (Environment::TickCount);

Random^ rnd = gcnew Random(Environment::TickCount);
txtNum->Text = Convert:: ToString(rnd->Next(39));
MessageBox::Show(Convert::ToString(Environment::TickCount));

Random^ Aleatorio = gcnew Random(60301433);

int Numero;

Numero = Aleatorio->Next(36);
txtResult->Text = Convert::ToString(Numero);


}
I have a error

I'm curious - what led you to conclude that it would be better not to tell us what that error is? What made you think that would be the best way to get the help you want?

EDIT: This looks like C# to me, not C++.
Last edited on
@OP,
http://www.dreamincode.net/forums/blog/2165/entry-4473-where-is-my-error/

@MikeyBoy,
it's not C#, but C++ / CLR (.NET)

it's not C#, but C++ / CLR (.NET)

Ah, OK. Thanks for the correction.
Topic archived. No new replies allowed.