Thread: Could you help me with my research? (Related to data structures)

  1. #1
    Registered User
    Join Date
    Oct 2021
    Posts
    1

    Lightbulb Could you help me with my research? (Related to data structures)

    good morning C programmers, I am taking data structures, I need to do a research on "The application of stacks in an image editing software", and I have not been able to find anything on the subject, someone could help me or give me ideas, I would appreciate it.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    Undo/redo could use two stacks.

    Each new operation pushes the action onto the undo stack.

    Each undo pops off the undo stack (reverse the action), and pushes it onto the redo stack (so you can do it again if necessary).
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structures using C
    By Amrita Ramnauth in forum C Programming
    Replies: 3
    Last Post: 03-02-2016, 10:08 PM
  2. Related to "Structures"
    By RyanC in forum C Programming
    Replies: 8
    Last Post: 05-23-2015, 12:09 PM
  3. Data Structures:
    By jocdrew21 in forum C Programming
    Replies: 15
    Last Post: 08-14-2013, 01:12 PM
  4. Replies: 2
    Last Post: 06-16-2005, 10:03 AM
  5. need help with data structures
    By straightedgekid in forum C++ Programming
    Replies: 0
    Last Post: 10-05-2001, 02:17 PM

Tags for this Thread