Hello everyone ,I faced this problem and I tried to fixe it but I couldind please I need your help .. this is my code:
#pragma endregion
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
do
{
trafficlight(a,b,1,2);
}while(i==0);//here is my problem i need condition to make the while loop working while the program is running
if I do click on the button it jumps to the while loop only without the previous code and I need the previous code to work and condition that makes the while loop working while the program is running ..