This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
You have bug here
fout.open("solid_position.dat",ios::out || ios::ate);
ios::out || ios::ate should be ios::out | ios::ate << 1 |
Vortmann, Claas wrote:
-----------------------------------------------------------------------------
#include <fstream.h> #include <iostream.h>
int main() {
ofstream fout; fout.open("solid_position.dat",ios::out || ios::ate);
return 0;
}
------------------------------------------------------------------------------------
--- Serge
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |