Please help me check T.T~~ My code keep in never end loop condition T.T
int
x = 0;
int
y = 0;
while
(y >= 0 || y <=5)
{
while
(x >= 0 || x <=4)
{
if
(menu[y][x] != 0)
{
if
(x == 0)
{name2 = " [ Regular ] ";}
else
{
if
(x == 1)
{name2 = " [ Sugar ] ";}
else
{
if
(x == 2)
{name2 = " [ Milk ]";}
else
{name2 = " [ Both ]";}
}
}
if
(y == 0)
{name1 = " Expresso ";}
else
{
if
(y == 1)
{name1 = " Cappucino ";}
else
{
if
(y == 2)
{name1 = " Latte ";}
else
{
if
(y == 3)
{name1 = " Hot Chocolate ";}
else
{name1 = " Plain Tea ";}
}
}
}
cout
<<num<<". "<<setw(5)<<menu[y][x]<<setw(20)<<"Cup Of "<<name1<<name2<<endl;
num = num + 1;
}
x = x + 1;
}
y = y + 1;
}
}
use 2 && for the condition... plz marked as solved ^^ hehe
@michaellee95
Super Thank Hyper Thank U~~~ Muack Muack~~~ U really Help Me Solve A Very Very Big Problem ^0^~~