Advertisement
Kocyk

lista

May 13th, 2019
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. struct element
  4. {
  5.   element * nast;
  6.   int liczba;
  7. };
  8. struct lista
  9. {
  10.     element* biezacy;
  11.    
  12. }
  13. lista stworz ()
  14. {
  15.     lista nowalista;
  16.     nowalista.biezacy = nullptr;
  17.     return nowalista;
  18. }
  19. void wyswietlanie()
  20. {
  21.  
  22. }
  23. void dodaj_element (int nowaliczba)
  24. {
  25.     cout<<"Podaj liczbe ktora chcesz dodac"<<endl;
  26.     cin>> nowaliczba;
  27.     element* nowy = new element;
  28.     nowy -> liczba = nowaliczba;
  29.     if()
  30. }
  31. int main()
  32. {
  33.     lista lista;
  34.     int nowaliczba;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement