HEAD FILE 
Author Message
 HEAD FILE

I used ifstream, ofstream, vector in a source file, which head files should
I include?
                    using namespace std ;
                    typedef vector<char*> INTVECTOR;
                    INTVECTOR theVector;
                    ifstream ifPtr;
                    ofstream ofPtr;

If I wrote like this:
                        #include <vector>
                        #include <fstream.h>
"ifstream: ambiguous symble" error appears.



Fri, 24 Oct 2003 14:54:48 GMT  
 HEAD FILE
In fact, that error appears when I added my defined head file.


Quote:
> I used ifstream, ofstream, vector in a source file, which head files
should
> I include?
>                     using namespace std ;
>                     typedef vector<char*> INTVECTOR;
>                     INTVECTOR theVector;
>                     ifstream ifPtr;
>                     ofstream ofPtr;

> If I wrote like this:
>                         #include <vector>
>                         #include <fstream.h>
> "ifstream: ambiguous symble" error appears.



Fri, 24 Oct 2003 15:18:40 GMT  
 HEAD FILE

says...

Quote:
> I used ifstream, ofstream, vector in a source file, which head files should
> I include?

<vector> and <fstream>

--
    Later,
    Jerry.

The Universe is a figment of its own imagination.



Mon, 27 Oct 2003 07:04:47 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. head file

2. head file

3. head file link error

4. (Q)#include a head file from my own dll

5. Which head file I shoud include ?

6. including head files

7. Deleting the head of a file

8. Banging my head again

9. isupper() is doing my head in....

10. My head is messed up!

11. head wrecked by scanf, please help.

12. CAUTION: This might hurt your head.

 

 
Powered by phpBB® Forum Software