Startpunkten

This commit is contained in:
2026-03-05 13:44:23 +01:00
commit adf9f82c8b
26 changed files with 3313 additions and 0 deletions

47
Linked_List/lab_0.h Normal file
View File

@@ -0,0 +1,47 @@
/*************************************************/
/*HEADERFIL LABO.H */
/*************************************************/
#ifndef _lab0_
#define _lab0_
#include <stddef.h> //för NULL
#include <assert.h> //för assert()
#include <iostream.h> //för in-ut matning
#include <conio.h> //för getch();
#include <string.h> //för säker inmatning
#include <stdlib.h> //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