|
From: Daniel G. <sp...@ho...> - 2003-01-28 13:15:38
|
are you #including ostream.h ?
>From: "Jörgen" <qa...@ho...>
>To: dev...@li...
>Subject: [Dev-C++] ofstream error
>Date: Tue, 28 Jan 2003 13:28:56 +0100
>
>Hi again list.
>I posted the following a few days ago. I didn't get any answers :-(. If
>this is because you can't help me or some with the knowledge missed the
>post, I don't know. Therefore I give it another try...
>
>/Jörgen
>
>*** OLD POST ***
>Hi
>
>The following code
>
>void writeToFile(char* filename, vector<hashItem_rowCol*>& hashTable){
> ofstream ofile(filename);
>
> for(int i=0;i<hashTable.size();i++){
> if(hashTable[i] != NULL){
>
> ...
>
> }
> }
>}
>
>produces the following error
>
>Pattern_Creator.cpp:1555: variable `std::ofstream ofile' has initializer
>but incomplete type
>
>1) What does this error mean?
>2) How do I correct it?
>
>Any clues?
>
>regards,
>Jörgenr
>
_________________________________________________________________
Worried what your kids see online? Protect them better with MSN 8
http://join.msn.com/?page=features/parental&pgmarket=en-gb&XAPID=186&DI=1059
|