I am a beginner in C++ and needs help ...The program required the user to input integers until input 0; the program must be displayed first- then even numbers and than - odd numbers.Using a list and if the number is even we put it before the first node:prim else ( odd number) we put after the last odd node - ultim. It displays my latest number with all the waters parcurg(prim)
well your first problems are you're using iostream.h... just use iostream.
Also you should either add usingnamespace std; or using std::cout; using std::cin; using std::endl; etc. Or use std::cout<<....
For the rest of the code: I don't get your question really, and it'd help if you'd post your code properly (spaces and tabs added where needed and put code brackets around it), cuz this is illegible.