forked from hiimmuc/Transportation_Optimization
-
Notifications
You must be signed in to change notification settings - Fork 0
/
InOutFiles.h
34 lines (28 loc) · 910 Bytes
/
InOutFiles.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef __INOUTFILES_H_
#define __INOUTFILES_H_
struct customerr{
char* name;
char* phone;
int cip[2];//customer's initial position
int cfp[2];//customer's final position
};
typedef struct customerr customer;
struct driverr{
char* name;
char* phone;
char* numberPlt;
int dp[2];//driver's present position
};
typedef struct driverr driver;
int actualLength(const char *string);
char* readline(int lineNumber,const char *txtFile);
int *getpos(int line, const char* filename);
int count(const char *obj);
customer* constructC(int num,customer *c);
driver* constructD(int num,driver *d);
int** allocate(int number_of_row, int number_of_cols);
void printMat(int** arr, int num_of_rows, int num_of_cols);
void getCusCip(int**CusCipMat,customer *c,int numOfCus);
void getCusCfp(int**CusCfpMat,customer *c,int numOfCus);
void getDrvDp(int**DrvDpMat,driver *d,int numOfDrv);
#endif