Linked List Creation and Manipulation in C++: A Comprehensive Guide

  • Thread starter Thread starter heavyc
  • Start date Start date
Click For Summary
SUMMARY

The discussion focuses on creating and manipulating a linked list in C++ 6.0, specifically generating a linked list with 10 random numbers ranging from 1 to 5, inserting them in the appropriate position, and displaying the occurrences of each number. Additionally, the task includes creating a function to delete duplicate items, ensuring the linked list remains sorted and unique. The user is transitioning from C++.NET to C++ 6.0, which has led to confusion, although the syntax remains consistent across both versions.

PREREQUISITES
  • Understanding of linked list data structures
  • Familiarity with C++ 6.0 syntax
  • Knowledge of the library for random number generation
  • Experience with functions for data manipulation
NEXT STEPS
  • Implement linked list insertion algorithms in C++ 6.0
  • Explore random number generation using in C++
  • Learn about function creation for deleting duplicates in linked lists
  • Study sorting algorithms applicable to linked lists
USEFUL FOR

Students learning C++ programming, software developers working with linked lists, and anyone interested in data structure manipulation in C++ 6.0.

heavyc
Messages
16
Reaction score
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.
 
Physics news on Phys.org
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?
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
Replies
12
Views
3K
Replies
1
Views
1K
  • · Replies 64 ·
3
Replies
64
Views
7K
  • · Replies 2 ·
Replies
2
Views
1K
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K