code changed
when i build and run this is what is displayed on startup:
11625
#include <stdio.h>#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <conio.h>
Type: Posts; User: j.ward91
code changed
when i build and run this is what is displayed on startup:
11625
#include <stdio.h>#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <conio.h>
so like this:
void RoomSetup(void){
strcpy(Room[R_ENTRANCE].Description, "Entrance Corridor");
Room[R_ENTRANCE].Exit[North]=R_LIVING;
Room[R_ENTRANCE].Exit[East]=R_GARAGE;
...
made the recommended changes below, still doesnt work, im in over my head here just cant seem to do anything right
#include <stdio.h>#include <stdlib.h>
#include <string.h>
#include <ctype.h>...
#include <stdio.h>#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <conio.h>
#define North 0
#define East 1
#define South 2
#define West 3
fixed that error, but same problem still persists, thanks for the fix though
the program is a 2d floor plan navigating program which displays which room you are currently in, a description of the room and available exits for n, e, s, w directions.
the program runs okay...