hi. in a variable name I have the name of a file. how can I open it?
this doesn' t work. it shows me "segmentation fault". why?Code:char name[14]="name.bmp"; FILE *image=fopen(name, "rb");
hi. in a variable name I have the name of a file. how can I open it?
this doesn' t work. it shows me "segmentation fault". why?Code:char name[14]="name.bmp"; FILE *image=fopen(name, "rb");
The problem probably lies elsewhere.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)