- Joined
- Dec 31, 2008
- Messages
- 1
- Reaction score
- 0
when i write
for(;
{
cin >> input;
switch(input)
{
case 1:
case 2:
case 3:
default:
}
}
when i give integer as input my program works fine
but when i give char or string input my program goes iautomatic infinite iterations
why so ?
whats the solution
for(;
{
cin >> input;
switch(input)
{
case 1:
case 2:
case 3:
default:
}
}
when i give integer as input my program works fine
but when i give char or string input my program goes iautomatic infinite iterations
why so ?
whats the solution