Using Scanf to input many words?
Posted on 2003-11-16
In C ,I want to scanf a line consisting of many words and till after I press enter key,how to do it?
This would be fine but the problem is I need to enter 15 characters.So what I want is as soon as I press enter I want the scanf to scan the words I entered.
In C++ its conveniently done using cin.get() function but how to do in C?