using namespace std

This is a discussion on using namespace std within the C++ Programming forums, part of the General Programming Boards category; couple questions......
1. what does using namespace std exactly do?
2. does it do something to the way eof works?
...

using namespace std

couple questions......

1. what does using namespace std exactly do?

2. does it do something to the way eof works?
i had a program that worked when i didnt have using namespace std but i needed to add it for other reasons and now it seems like my eof (end of file) doesnt work and my program just goes into an endless loop. i was using eof because i need to keep getting data from a file until it reaches the eof.

Rather than me deciphering your code, tell me what it is supposed to do. What does the input look like, what are you trying to do with it.

That input function looks a mess (sorry!). I would suggest you have only one call to the read function (.get() in this case), and control the loop around that. But once I know what you're trying to do, I can advise you better.

i'm trying to read text from a file and store the words in an array, i then want to to store the words as strings in a linked list so that they point to what files the words appear in. basically a search engine. i'm pretty sure the problem has something to do with me using namespace std and that screwing up the eof while loop i use in the input function