when i use c++ string i won't be able to use
USING SCANF:Code:scanf()
when i need to check the end of input file i do it using scanf by the following approach:
but when i use c++ string how to check the end of input fileCode:while(scanf("%s",&s1)!=EOF) { {