sv90 wrote:BY THIS CODE ICAN'T GET SEVERAL INPUT
SO WHAT CAN I DO NOW
You can write your code so that it can read inputs until EOF. There are many posts regarding this like the sticky post of 100. Anyway here it can be
- Code: Select all
while(scanf(" %s",str)!=EOF) //str is char array
// this is the beginning of each input block
// do all the initializaion and processing here and then print output.
Search the forum. You'll get more help.