全文预览

实验— C++基础练习

上传者:非学无以广才 |  格式:pdf  |  页数:41 |  大小:3937KB

文档介绍
created with Spire.PDF for .NET.\rcout"\t =$ begin..................\n";\rbegin=(double)clock()/CLK_T CK;\r) Œ\rvoid Watch::stop()\r{\rend=(double)clock()/CLK_TCK;\rshow();\r)\rvoid Watch::show()\r(\rco u t "\t=$?Fwx.ÜÝÞ¯ª:"(end -begin)"s \n";\r)\r4 ZuvWßÏWÍΌH±=$main ( ) TUZmain ( ) Màá⯪iãu\rv#include"Watch.h"\rÙÚdV?void main()\r(\rWatch s;\rs.start();\rint h=0;\rint a=0;\rint b=l;\rfbr(int i=0;i<10000000;i++)\r{\rh++;\ra=a+h;\rb*=h;\r)\rs.stop();\r)\r[åæƒÔ ç°? for(int i=0;i<10000000;i++)\r{\rh++;\ra=a+h;\rb*=h;\r}\rèH¾¿¯ªé&êÅiëìíéiî?ïð¯ªæƒstop¯\rñ-start¯ñ`é&iîòíéóèô,-`\r[åwõ?.\r"D`\F?G;HI'F?K'??'AB??\Debug\time...LM\r® be\r=ö?Fwx.ÜÝÞ¯ª:0.156s\rPress any key to continue

收藏

分享

举报
下载此文档