Read from file error

I'm trying to read 1 and 0's from text file, into bool variables, and set them as such, but keep getting an error. The value is read correctly from the file, but when I set the bools inside map_tile class and cout it, it comes out as 152 oddly enough. What am I doing wrong?

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
#include "Map_Segment.h"
#include "Map_Tile.h"
#include <iostream>
#include <fstream>
using std::ifstream;
using std::string;
using std::cout;
using std::cin;
using std::endl;

Map_Segment::Map_Segment(string roomName)
{
    roomName = "Map_Data/" + roomName + "/Valid_Exits.txt";
    std::cout << roomName;
    ifstream load;
    load.open( roomName.c_str() );
    for ( int x = 0; x < MAP_SIZE; x++ )
    {
        bool north, east, south, west;
        for ( int y = 0; y < MAP_SIZE; y++ )
        {
            load >> north >> east >> south >> west;
            game_board[x][y].set_exits(north, east, south, west);
        }
    }
}


Text File
1
2
3
4
1 0 0 1
1 1 1 0
0 1 0 1
//etc.. 
Figured it out lol. Forgot to finish a couple functions :P
Topic archived. No new replies allowed.