void print_list(LinkQueue<int> &q) { cout << "data:" << endl; while (!q.isEmpty()) { int d = q.pop(); cout << d << " "; } cout << endl; }