Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

abstract data type (ADT)

67 views
Skip to first unread message

keith

unread,
Mar 22, 2001, 5:10:55 PM3/22/01
to
what is abstract data type??can anyone provide me two examples please??

many thx


Ben Pfaff

unread,
Mar 22, 2001, 5:31:18 PM3/22/01
to
"keith" <keit...@hotmail.com> writes:

> what is abstract data type??can anyone provide me two examples please??

Do your own homework.
--
"In My Egotistical Opinion, most people's C programs should be indented six
feet downward and covered with dirt." -- Blair P. Houghton

Duncan Bayne

unread,
Mar 22, 2001, 6:28:01 PM3/22/01
to
> what is abstract data type??can anyone provide me two examples please??

An abstract data type is like a normal data type, say int or char, but
one that was originally only intended to compile on Abstract C, an
implementation of C by K&R that built upon the C89 standard, and added
support for ADTs and abstract constants (off-topic, quite an advanced
subject).

Many other languages have added implementations of this feature, which
is why for example you'll hear of Java developers and C++ developers
talking of ADTs.

Two examples of ADTs are:

1. abs_int - an abstract definition of the integer type, which can also
store dates in native system format, and floating point values of up to
20 significant digits.

2. linked lists - these are abstract data types that have been
implemented in almost every modern language. Note that they originated
in Abstract C (a sore point with Abstract C developers), and were
rapidly adopted by other languages.

Hope that answers your question in an appropriate fashion.

--
Duncan Bayne
2000 Honda NSR150RR

-----------------------------------------------------------------------
EMail: dhb...@ihug.co.nz Web: http://dhbayne.netfirms.com/
Kuro5hin: dangermouse Slashdot: dangermouse_nz (UID 315952)
Phone: 025 626 3023
-----------------------------------------------------------------------
To think contrary to one's area is heroism. But to speak against it is
madness.
-- Eugene Ionesco
-----------------------------------------------------------------------

keith

unread,
Mar 22, 2001, 7:18:30 PM3/22/01
to
Many thanks!!!!!!!

"Duncan Bayne" <dhb...@ihug.co.nz> ?????
news:3ABA8A81...@ihug.co.nz...

-hs-

unread,
Mar 23, 2001, 1:55:24 AM3/23/01
to
keith a écrit dans le message <99dse3$a4...@rain.i-cable.com>...

>what is abstract data type??can anyone provide me two examples please??

What about a web search ?

www.google.com + abstract data type + I feel lucky

http://hissa.nist.gov/dads/HTML/abstracdtype.html

--
-hs- "spaces, not tabs"
CLC-FAQ: http://www.eskimo.com/~scs/C-faq/top.html
ISO-C Library: http://www.dinkum.com/htm_cl
FAQ de FCLC : http://www.isty-info.uvsq.fr/~rumeau/fclc


Joona I Palaste

unread,
Mar 23, 2001, 2:26:18 PM3/23/01
to
Duncan Bayne <dhb...@ihug.co.nz> scribbled the following:

>> what is abstract data type??can anyone provide me two examples please??

> An abstract data type is like a normal data type, say int or char, but
> one that was originally only intended to compile on Abstract C, an
> implementation of C by K&R that built upon the C89 standard, and added
> support for ADTs and abstract constants (off-topic, quite an advanced
> subject).

> Many other languages have added implementations of this feature, which
> is why for example you'll hear of Java developers and C++ developers
> talking of ADTs.

> Two examples of ADTs are:

> 1. abs_int - an abstract definition of the integer type, which can also
> store dates in native system format, and floating point values of up to
> 20 significant digits.

> 2. linked lists - these are abstract data types that have been
> implemented in almost every modern language. Note that they originated
> in Abstract C (a sore point with Abstract C developers), and were
> rapidly adopted by other languages.

> Hope that answers your question in an appropriate fashion.

I bet the OP hands in your answer to his instructor, word-for-word.

--
/-- Joona Palaste (pal...@cc.helsinki.fi) ---------------------------\
| Kingpriest of "The Flying Lemon Tree" G++ FR FW+ M- #108 D+ ADA N+++|
| http://www.helsinki.fi/~palaste W++ B OP+ |
\----------------------------------------- Finland rules! ------------/

"It's time, it's time, it's time to dump the slime!"
- Dr. Dante

0 new messages