I need to use array for a 'map' im making and is it possible to make to arrays 'overlap' so they are linked together. and i want to name each array according to the current place he is in.
i know this isn`t much but i try to give a rough idea of what i mean.
also i get 'too many characters in constant' error i know what it means but is there any way i can put several characters into an array?
Code:
#include <iostream>
#include <string.h>
using namespace std;
void main (void)
{
int room [3][6];
char room1 [3][6];
room[0][0] = 1, room[0][1] = 2, room[0][2] = 3, room[0][3] = 4, room[0][4] = 5, room[0][5] = 6, room[0][6] = 7;
room1[0][0] = 'Northwing' , room1[0][1] = 'hallway';
cout << room[0][6];