32 lines
726 B
C
32 lines
726 B
C
//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
|
|
|
|
|