Jump to content

help on homework

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
8 replies to this topic

#1
sandrla

sandrla

    Newbie

  • Members
  • Pip
  • 2 posts
hi
please please i need a help
i have an assignment and i need the answer because i have to submitted tomorrow
this is the question
it is in C++
i nedd the code please

Given a structure definition:
struct student{
int student_id;
float student_marks;
struct student * llink;
struct student * rlink;
}
a. Create a doubly linked list by adding five nodes using dynamic memory allocation. Structure of each node in the linked list is given above, make this linked list circular and display the elements of the linked list.

b. Write a program/algorithm to sort linked list based on student marks created in 2 a. in ascending order.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
What do you have so far?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,717 posts
Linked list - Wikipedia, the free encyclopedia
sudo rm -rf /

#4
cdg10620

cdg10620

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 389 posts
Forum != PrivateTutor

While( !User.hasAnswer )
{
     User.askQuestion();

     if( User.postCode && User.putForthEffort )
     {
          CodeCallMembers.Help();
          User.hasAnswer = true;
     }
     else
     {
          CodeCallMembers.Laugh();
     }
} 

-CDG10620
Software Developer

#5
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,717 posts
Bahahahaha

I couldn't have put it more succinctly myself, cdg.
sudo rm -rf /

#6
cdg10620

cdg10620

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 389 posts
I've decided that I should be getting some major rep for that little block of code. lol
-CDG10620
Software Developer

#7
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,717 posts
That's like, what, your tenth time posting that? :D
sudo rm -rf /

#8
cdg10620

cdg10620

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 389 posts
Yeah... I spent some time this morning searching for threads where that line of code was applicable. there were a lot. :P It doesn't surprise me. I'm going to start throwing that on every thread where someone is attempting to outsource their homework to us.
-CDG10620
Software Developer

#9
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,717 posts
As you should.
sudo rm -rf /