Startpunkten

This commit is contained in:
2026-03-05 13:40:46 +01:00
commit 5a47ec9ce8
5 changed files with 618 additions and 0 deletions

31
Mastermind/lab_2.h Normal file
View File

@@ -0,0 +1,31 @@
//Headerfil för Lab 2
#ifndef _lab_2_h
#define _lab_2_h
#include <iostream.h> //för in och utmatning
#include <string.h> //för strcmp()
#include <stdlib.h> //för atoi()
#include <conio.h> //för clrscr() och getch()
#include <fstream.h> //för filhantering
#include <iomanip.h> //för printhigh
#include <dos.h> //för datumet
#define ARRAY 4 //arraystorlek för hemligt_tal
#define BUFFERSIZE 100 //arraystorlek för säker inmatning
#define TRIES 15 //antal gissnigsförsök
#define NAMESIZE 20 //antal tecken på namnet
typedef struct spelare
{
char namn[NAMESIZE];
int score;
struct date datum;
}spelare;
void klar (int a);
#endif