/*************************************************/ /*HEADERFIL LABO.H */ /*************************************************/ #ifndef _lab0_ #define _lab0_ #include //för NULL #include //för assert() #include //för in-ut matning #include //för getch(); #include //för säker inmatning #include //för atoi() const int MAXLISTA = 20; const int BUFFERSIZE = 100; const int FALSE=0; const int TRUE=!FALSE; typedef int listItemType; struct listNode; typedef listNode *ptrType; class listClass { public: listClass(); ~listClass(); listClass(const listClass &L); int listIsEmpty(); int listLength(); int posIsOk(position); int newDuplicate(newItem); void listInsert(newItem); void listDel(position); void listSort(); void listDisplay(); void listSeek(soktVarde); void listIsItEmpty(); void listAntal(); private: ptrType ptrTo(int position); int size; ptrType head; }; #endif