用于存放学校的作业便于复习。
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.
 
 
 
 

15 lines
464 B

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