Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string napisy(baton * B, int liczba)
- {
- string napis;
- for(int i=0; i<liczba; i++)
- {
- napis[i]=B[i].nazwa && B[i].cena; // nie rozumiem tego zapisu.
- }
- // Jak juz napisalas petle to wez ja wypisz na ekran bo moze tutaj jest blad
- // Tutaj wedlug mnie powinno byc return napis;
- }
- // Skoro to jest funkcja to wywolanie jej powinno miec arguemnty
- fstream plik( "plik.txt", ios::out );
- if( plik.good() )
- {
- plik << napisy(B,M) << endl;
- plik.close();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement