added my name
This commit is contained in:
parent
049a40aaa0
commit
88ea1e8453
7 changed files with 53 additions and 29 deletions
18
toh_disk.h
18
toh_disk.h
|
|
@ -1,9 +1,9 @@
|
|||
/*----------------------------------------------------------
|
||||
* HTBLA-Leonding / Class: <your class>
|
||||
* HTBLA-Leonding / Class: 2IHIF
|
||||
* ---------------------------------------------------------
|
||||
* Exercise Number: 09
|
||||
* Title: Tower of Hanoi Disk ADT
|
||||
* Author: */<your name>/*
|
||||
* Author: Marc Tismonar
|
||||
* ----------------------------------------------------------
|
||||
* Description:
|
||||
* The declaration of an Abstract Data Type representing
|
||||
|
|
@ -15,7 +15,12 @@
|
|||
|
||||
/* == !Include guard and required includes need to be added */
|
||||
|
||||
#ifndef ___TOH_DISK_H
|
||||
#define ___TOH_DISK_H
|
||||
#include <stdbool.h>
|
||||
|
||||
/** Declares a disk. */
|
||||
typedef struct TohDiskData* TohDisk;
|
||||
|
||||
/**
|
||||
* Provides the instance of the disk with the given size.
|
||||
|
|
@ -25,7 +30,7 @@
|
|||
* @return The disk of the given size or 0,
|
||||
* if no such disk is available.
|
||||
*/
|
||||
<type> td_get_disk(unsigned short <params>);
|
||||
TohDisk td_get_disk(unsigned short size);
|
||||
|
||||
/**
|
||||
* Determines whether or not the given disk is valid.
|
||||
|
|
@ -34,7 +39,7 @@
|
|||
* @param disk The disk in focus of this ADT.
|
||||
* @return True if the disk is valid, false otherwise.
|
||||
*/
|
||||
<type> td_is_valid(<params>);
|
||||
bool td_is_valid(TohDisk disk);
|
||||
|
||||
/**
|
||||
* Provides the size of the given disk.
|
||||
|
|
@ -42,7 +47,7 @@
|
|||
* @param disk The disk in focus of this ADT.
|
||||
* @return The size of the disk, if it is valid or 0 otherwise.
|
||||
*/
|
||||
unsigned short td_get_size(<params>);
|
||||
unsigned short td_get_size(TohDisk disk);
|
||||
|
||||
/**
|
||||
* Compares the size of the candidate disk with size of the given disk.
|
||||
|
|
@ -52,5 +57,6 @@ unsigned short td_get_size(<params>);
|
|||
* @return True if the 'smaller_candidate' disk is smaller than the
|
||||
* given disk of this ADT and both disks are valid, false otherwise.
|
||||
*/
|
||||
<type> td_is_smaller(<params>);
|
||||
bool td_is_smaller(TohDisk disk, TohDisk smaller_candidate);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue