Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- struct element
- {
- element * nast;
- int liczba;
- };
- struct lista
- {
- element* biezacy;
- }
- lista stworz ()
- {
- lista nowalista;
- nowalista.biezacy = nullptr;
- return nowalista;
- }
- void wyswietlanie()
- {
- }
- void dodaj_element (int nowaliczba)
- {
- cout<<"Podaj liczbe ktora chcesz dodac"<<endl;
- cin>> nowaliczba;
- element* nowy = new element;
- nowy -> liczba = nowaliczba;
- if()
- }
- int main()
- {
- lista lista;
- int nowaliczba;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement