A...d....t

This is a discussion on A...d....t within the C Programming forums, part of the General Programming Boards category; hiya im revising for an exam and just need some clarification.... How would you write function prototypes in an ADT ...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    10

    A...d....t

    hiya
    im revising for an exam and just need some clarification....

    How would you write function prototypes in an ADT (Advanced Data Types) using c programming?

    Thanks

  2. #2
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,386
    >How would you write function prototypes in an ADT (Advanced
    >Data Types) using c programming?

    Just as you normally would do. But I guess your problem is the ADT itself, how to connect it with the functions, like class-member functions are connected with the class in C++. You could give your ADT a name and use that name in the functions. If you have an ADT, for example a graph, then you could do something like this:

    bool add_edge (graph mygraph);

    How the graph-type itself is implemented shouldn't be independent from the prototypes, which are in fact interfaces.

Popular pages Recent additions subscribe to a feed

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