cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
szidi
szidi
Jun 12, 2012 at 5:47am UTC
gyorgyjozsi
(5)
se citeste un sir de numere intregi de la tastatura cu care se creeaza o lista dublu inlantuita. sa se scrie un algoritm ce tipareste nodurile in ordinea 1, 3, 5, 7, ... , 2n-1, 2n, 2n-2, ... , 4 , 2.
Jun 12, 2012 at 6:02am UTC
Cristi Stefan
(10)
algoritmul de tiparire e:
while (temp->succ!=NULL || temp!=NULL)
{
cout<<temp->info;
temp=temp->succ->succ;
}
Jun 12, 2012 at 6:05am UTC
gyorgyjozsi
(5)
si dupa inserare tre sa scriu numai tiparirea?
Jun 12, 2012 at 6:06am UTC
gyorgyjozsi
(5)
scrie tot algoritmul daca ai timp
Jun 12, 2012 at 6:12am UTC
gyorgyjozsi
(5)
deci eu trebuie sa tiparesc nodurile inpare pana la sfarsit si de acolo cele pare in mod descrascator?
Jun 12, 2012 at 6:38am UTC
gyorgyjozsi
(5)
sau zi-mi macar cum verific daca nodul e par sau impar?
Topic archived. No new replies allowed.