compiler says:Code:59: string::iterator it = line.begin(); 60: int j = 0; 61: for ( ; it < line.end(); it++) 62: for ( ; j < width_; j++ ) 63: maze_[i][j] = *it;
61: error: ‘it’ was not declared in this scope
I say:
"WTF?"
compiler says:Code:59: string::iterator it = line.begin(); 60: int j = 0; 61: for ( ; it < line.end(); it++) 62: for ( ; j < width_; j++ ) 63: maze_[i][j] = *it;
61: error: ‘it’ was not declared in this scope
I say:
"WTF?"
From those lines of codes pretty much the only cause i can find for that error is that you forgot to use the std namespace (ie. need to use std::string::iterator).