Thanx for the guidance, to WaltP and Salem.
I think, at least, my second option is correct. As that will cause all
the white spaces ( blank space, carriage return, tab, etc ) to be ignored. I...
Type: Posts; User: Mahesh Herle B
Thanx for the guidance, to WaltP and Salem.
I think, at least, my second option is correct. As that will cause all
the white spaces ( blank space, carriage return, tab, etc ) to be ignored. I...
Try this...
temp=100;
do{
printf("Please enter the temperture:\n");
int_var = scanf("%d", &temp);
if (int_var==0)
Ghulam
[ Ever heard of it? ]
The scanf() function returns the number of values assigned to the the given addresses (the ones that comesafter the control string.).For example, if you have
scanf ("%d %d",&x,&y) where x and y are...
if the program prints the message to read in a character n then doesn't wait for u to enter character then ,try this.
1>
before using scanf() to read 'quit' ,insert this line
fflush(stdin);...
if the program prints the message to read in a character n then doesn't wait for u to enter character then ,try this.
1>
before using scanf() to read 'quit' ,insert this line
fflush(stdin);
...