#include
#include
#include
using namespace std;
int main( )
{
const char* name_data[] = { "A", "B","C", "D", "E","F", "G" };
const bool girl_data[] = { true, true, false, false, true, true, true };
const int num_graduates = sizeof( girl_data ) / sizeof( girl_data[0] );
list< pair< string, bool > > graduate;
for( int i = 0; i < num_graduates; ++i )
if( girl_data[i] )
graduate.push_front(
make_pair( name_data[i], girl_data[i] ) );
else
graduate.push_back(
make_pair( name_data[i], girl_data[i] ) );
}