Startpunkten
This commit is contained in:
31
Mastermind/lab_2.h
Normal file
31
Mastermind/lab_2.h
Normal 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user