STL学习小结(原创:桑英硕 )[4]

[入库:2005年8月19日] [更新:2007年3月24日]

本文简介:选择自 wxaxiao 的 blog

   clock();
   cout<<"?"<<endl;
   begin=(double)clock()/clk_tck;
   arrayinsert<int>(array1,s_data,size);
   end=(double)clock()/clk_tck;
   cout<<"??"<<(end-begin)<<endl;
   getch();
   begin=(double)clock()/clk_tck;
   vectorinsert<int>(&vector1,s_data,size);
   end=(double)clock()/clk_tck;
   cout<<"??"<<(end-begin)<<endl;
   getch();
   begin=(double)clock()/clk_tck;
   listinsert<int>(&list1,s_data,size);
   end=(double)clock()/clk_tck;
   cout<<"??"<<(end-begin)<<endl;
   getch();
   begin=(double)clock()/clk_tck;
   multisetinsert<int>(&multiset1,s_data,size);
   end=(double)clock()/clk_tck;
   cout<<"??"<<(end-begin)<<endl;
   getch();
   free(s_data);
   return 0;      
}

本文关键:STL学习小结(原创:桑英硕 )
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top