1. 程式人生 > >C++編程實現對工廠產品生產流程的模擬

C++編程實現對工廠產品生產流程的模擬

stream ace back lis 小時 sin cout 分享 queue

 1 #include <iostream>
 2 #include <list>
 3 using namespace std;
 4 
 5 int main ()
 6 {
 7      list<product> queue;
 8      queue.push_back(product());
 9      var x = queue.front();
10      cout<<"產品"<<x<<"生產完畢,共耗時9小時"11      return 0;
12 }

最近編寫了模擬工廠產品生產流程的程序,分享如上(C++)

C++編程實現對工廠產品生產流程的模擬