| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
i have something to ask?do you know any ways to get character
except of(scanf,gets)in c?(not in c++ )and i have another ;in c++ there is something like " cout<<flush;" and i want to use it in c but i defined my main program as main.c can someone help? |
|
#2
|
|||
|
|||
|
Quote:
getch() is another method. The cout in C++ is not a sole method but a member of class iostream.What do you want exactly? |
|
#3
|
|||
|
|||
|
i think you may want fflush()
|
|
#4
|
|||
|
|||
|
fflush is for emptying a buffer after an operation. I still do not know what do you mean by your question but can guess that you are trying to read a string into a buffer and then fflush it to console.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > C/C++ Help > Scanf&cout<<flush |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|