when i use c++ string i won't be able to use
Code:
scanf()
USING SCANF:

when i need to check the end of input file i do it using scanf by the following approach:
Code:
while(scanf("%s",&s1)!=EOF)

{
{
but when i use c++ string how to check the end of input file