• Support PF! Buy your school textbooks, materials and every day products Here!

Help with linked lists

  • Thread starter heavyc
  • Start date
  • #1
16
0
i was wondering if anyone can help me with linked lists???
I have to create a linked list with 10 random numbers rangeing from 1-5 and insert them into a node in the appriote postion of a linearly linked list and display the number of times each number of occurences of each item. and i have to create a function that would delete the replicate items in the linked list and only leave one of the same numbers. and then display the linked list sorted and unique.

I am having trouble starting this out because my teacher sucks and the book is horrible. I have tried help from computer people but it is still not sticking. I am sure if someone can help me get started i can probably get the rest done but i have no idea to get this started because i have only used c++.net and the teacher wants it done in c++6.0 so that is some of the trouble i am having so if someone can help i would be grateful.
 

Answers and Replies

  • #2
1,629
1
um....C++ in .net is virtually the same as in 6.0. The syntax has not changed. Use the random function in <cmath> to generate random numbers. Are you using standard template library or creating this from scratch?
 

Related Threads for: Help with linked lists

  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
13
Views
3K
Replies
7
Views
2K
  • Last Post
Replies
2
Views
10K
Replies
2
Views
1K
  • Last Post
Replies
1
Views
2K
Replies
8
Views
287
  • Last Post
Replies
1
Views
934
Top