Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. string napisy(baton * B, int liczba)
  2. {
  3.     string napis;
  4.     for(int i=0; i<liczba; i++)
  5.     {
  6.         napis[i]=B[i].nazwa && B[i].cena; // nie rozumiem tego zapisu.
  7.     }
  8. // Jak juz napisalas petle to wez ja wypisz na ekran bo moze tutaj jest blad
  9. // Tutaj wedlug mnie powinno byc return napis;
  10. }
  11.  
  12.  
  13. // Skoro to jest funkcja to wywolanie jej powinno miec arguemnty
  14.     fstream plik( "plik.txt", ios::out );
  15.     if( plik.good() )
  16.     {
  17.         plik << napisy(B,M) << endl;
  18.         plik.close();
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement