User Profile

Collapse

Profile Sidebar

Collapse
KDamon
KDamon
Last Activity: Nov 14 '17, 02:18 PM
Joined: Oct 29 '17
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I did test to see if they were there. I used this
    Code:
    cout << "The sorted list, without odd numbers, contains " << endl;
    	displayListForward(&list);
    	cout << "The sorted list, without odd numbers, in reverse, contains " << endl;
    	displayListBackwards(&list);
    	cout << "The sorted copy list contains " << endl;
    	displayListForward(&copyOfList);
    ...
    See more | Go to post

    Leave a comment:


  • KDamon
    started a topic How Do I Generate A Linked List of Unique Random Ints?
    in C

    How Do I Generate A Linked List of Unique Random Ints?

    I made a linked sorted list type, and I'm trying to insert unique random integers into it. I tried using the following method to keep the integers unique, but when I try it, I'm still getting duplicate integers. Is there something I'm missing with this method?

    Code:
    int generate_numbers(const int min, const int max)
    {
    LinkedSortedList<int> list;
    
    std::random_device rd;
    std::mt19937
    ...
    See more | Go to post
No activity results to display
Show More
Working...