Write a C++ code that implements a doubly linked list structure that contains float elements, and
then do the following:

  1. Implement a function DisplayDequeue(…) that displays the inserted elements in a way
    like the dequeue function in the queue, Example: input= 1.5 , 3.5, 10, 0.5
    output= 1.5, 3.5, 10, 0.5
  2. Implement a function DisplayEven(...) that displays only the even elements inserted by
    the user. i.e.: element number 0, element number 2, etc.
  3. Implement a function DisplayOdd(...) that displays only the odd elements inserted by the
    user. i.e.: element number 1, element number 3, etc

OK, first off, thank you for posting a message with a title other than 'C++ Code'. That is a first step, so credit where credit is due.

OTOH, reposting the same question in three different threads in two different fora is not a good thing. Please try to stick to a single thread in the future. Please show some patience, as it can take a while for us to respond.

On the gripping hand, simply posting your assignment without any explanation, and without showing us what you've done to solve it yourself, is extremely rude. It also violates one of the rules of Daniweb:

Do provide evidence of having done some work yourself if posting questions from school or work assignments

In other words, Show Us The Code. We aren't going to solve this problem for you; we will help you solve it, but you need to demonstrate that you've put some effort into learning this yourself.

Finally, weren't you the one who just posted a question about implementing the Fibonacci function? This project is significantly more difficult. How did you jump from that to this?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.