用于存放学校的作业便于复习。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
464 B

  1. #include "model.hpp"
  2. int main() {
  3. SingleQueueModel<Customer> simple_queue;
  4. Customer person = {1, 2};
  5. Customer person2 = {3243, 999};
  6. simple_queue.push(person);
  7. simple_queue.push(person2);
  8. std::cout << simple_queue.shift() << std::endl;
  9. simple_queue.push(person2);
  10. std::cout << simple_queue.shift() << std::endl;
  11. std::cout << simple_queue.shift() << std::endl;
  12. printf("\033[2J\033[10;37Hhello world\033[5m");
  13. return 0;
  14. }