Cześć.
Robie srtukture w pliku naglowkowycm
struct x
{
fstream plik;
}
i chce zniej korzystac w pliku wlasciwym.
Deklaruje x y;
y.plik.open( blablabla);
i dsotaje bledy tego typu
c:\documents and settings\właściciel\moje dokumenty\visual studio 2010\projects\b\b\program.h(8): error C2146: syntax error : missing ';' before identifier 'plik'
c:\documents and settings\właściciel\moje dokumenty\visual studio 2010\projects\b\b\program.h(8): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\właściciel\moje dokumenty\visual studio 2010\projects\b\b\program.h(8): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\właściciel\moje dokumenty\visual studio 2010\projects\b\b\program.h(9): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\właściciel\moje dokumenty\visual studio 2010\projects\b\b\program.h(9): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\documents and settings\właściciel\moje dokumenty\visual studio 2010\projects\b\b\program.cpp(73): error C2039: 'plik' : is not a member of 'x
c:\documents and settings\właściciel\moje dokumenty\visual studio 2010\projects\b\b\program.h(7) : see declaration of 'x'
c:\documents and settings\właściciel\moje dokumenty\visual studio 2010\projects\lotto\lotto\program.cpp(73): error C2228: left of '.open' must have class/struct/union