Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. C++ Queue and Stacks

C++ Queue and Stacks

Scheduled Pinned Locked Moved C / C++ / MFC
data-structuresc++
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 13446537
    wrote on last edited by
    #1

    Hello everyone. I have asked around all forums and cannot seem to get a satisfying answer as to how I can create a LinkedList stack or queue using classes not structures. I would love to post my number for a more personal response on whatsapp, thats if it is allowed. 0714815219

    CPalliniC L D J 4 Replies Last reply
    0
    • U User 13446537

      Hello everyone. I have asked around all forums and cannot seem to get a satisfying answer as to how I can create a LinkedList stack or queue using classes not structures. I would love to post my number for a more personal response on whatsapp, thats if it is allowed. 0714815219

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      Quote:

      LinkedList stack or queue using classes not structures.

      I suppose you know classes and structs in C++ are practically equivalent (see, for instance here: The difference between struct and class in C++ | Just Software Solutions - Custom Software Development[^]).

      In testa che avete, signor di Ceprano?

      1 Reply Last reply
      0
      • U User 13446537

        Hello everyone. I have asked around all forums and cannot seem to get a satisfying answer as to how I can create a LinkedList stack or queue using classes not structures. I would love to post my number for a more personal response on whatsapp, thats if it is allowed. 0714815219

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Exactly the same way you create a LinkedList of anything.

        1 Reply Last reply
        0
        • U User 13446537

          Hello everyone. I have asked around all forums and cannot seem to get a satisfying answer as to how I can create a LinkedList stack or queue using classes not structures. I would love to post my number for a more personal response on whatsapp, thats if it is allowed. 0714815219

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Member 13478479 wrote:

          I have asked around all forums and cannot seem to get a satisfying answer as to how I can create a LinkedList stack or queue using classes not structures.

          I find that really hard to believe, unless you limited your search to less than two sites. Since lists, stacks, and queues are the basis for any data structures class/book, you'd have a hard time finding a site that did NOT talk about them. The main difference between a struct and a class is the former has public members by default whereas the latter has private members by default.

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

          1 Reply Last reply
          0
          • U User 13446537

            Hello everyone. I have asked around all forums and cannot seem to get a satisfying answer as to how I can create a LinkedList stack or queue using classes not structures. I would love to post my number for a more personal response on whatsapp, thats if it is allowed. 0714815219

            J Offline
            J Offline
            jschell
            wrote on last edited by
            #5

            Member 13478479 wrote:

            I would love to post my number

            I would suggest removing your number. You can edit your post to do that.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups