void main_sink_b(list<int> data);void main(){list<int> data;data.push_back(100);data.push_back(0);main_sink_b(data);}void main_sink_c(list<int> data);void main_sink_b(list<int> data){main_sink_c(data);}void main_sink_c(list<int> data){{list<int>::iterator i;cout << "The list contains: ";for( i=data.begin();i!=data.end();i++){if (!*i){data.clear();}cout << " " << *i;}cout << endl;}}
static void main(){list<int> data;data.push_back(100);data.push_back(200);main_sink_b(data);}void main_sink_b(list<int> data){main_sink_c(data);}void main_sink_c(list<int> data){{list<int>::iterator i;cout << "The list contains: ";for( i=data.begin();i!=data.end();i++){if (!*i){data.clear();}cout << " " << *i;}cout << endl;}}