Abstract Data Type(ADT)

This is a discussion on Abstract Data Type(ADT) within the C Programming forums, part of the General Programming Boards category; What is an Abstract Data type in C. I could not find any info as it pertains to C programming. ...

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    7

    Abstract Data Type(ADT)

    What is an Abstract Data type in C. I could not find any info as it pertains to C programming. Also How do I Implement one.
    Any examples would be great.

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,211
    Why do you want to implement one if you don't know what it is?

  3. #3
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,592
    You mean like 'list' or 'tree' ?
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Registered User
    Join Date
    Oct 2007
    Posts
    54
    Abstract data type (ADT) is a specification of a set of data and the set of operations that can be performed on the data.

  5. #5
    Registered User
    Join Date
    Nov 2007
    Posts
    7

    Abstract data type

    I need to write a program that takes in a name of a person and some other descriptions of the person. The program should also do some calculations with the use of different functions eg. calculate time spent, payment owed etc. I need to do this with the use of an ADT. So what is the format for this?

  6. #6
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,682
    Hint: Structures is an ADT in C. Just an eample in C

    >So what is the format for this?
    May be like this
    Code:
    struct person
    {
        char name[25];
        char time[20];
        ...
        ...
    };
    ssharish

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Abstract data types in a queue
    By sa125 in forum C Programming
    Replies: 5
    Last Post: 07-27-2008, 02:51 PM
  2. Bitmasking Problem
    By mike_g in forum C++ Programming
    Replies: 13
    Last Post: 11-07-2007, 11:24 PM
  3. question about a working linked list
    By cold_dog in forum C++ Programming
    Replies: 23
    Last Post: 09-13-2006, 01:00 AM
  4. Abstract Data Type
    By Thantos in forum C Programming
    Replies: 11
    Last Post: 11-29-2003, 03:17 PM
  5. All u wanted to know about data types&more
    By SAMSAM in forum Windows Programming
    Replies: 6
    Last Post: 03-11-2003, 02:22 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21