![]() |
scanf - turbo c/c++
Code:
#include <conio.h>i think of having if statements if (a=='.') b=8;printf ("%c",b); where i want to set decimal 8 to ascii which is backspace; but it only execute when i enter during the scan,, |
Re: scanf - turbo c/c++
Use fgets to read a line of input from the user (use stdin as the file pointer). Then you can parse the input to your heart's content.
|
| All times are GMT +5.5. The time now is 00:20. |