摘要: 需求:编写延时循环程序clock()函数,返回程序开始执行后所用的系统时间(返回时间单位不一定是秒), ctime将clock_t作为clock()返回类型的别名 ctime头文件定义了一个符号常量—CLOCKS_PER_SEC,该常量等于每秒包含的系统时间单位数 将clock函数返回的系统时间除以 阅读全文
posted @ 2019-09-19 23:43 草叶321 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 int main() 3 { 4 using namespace std; 5 int x; 6 7 cout3 has the value "; 13 cout3)3 has the value "; 18 cout3)<<endl; 19 return 0; 20 } 阅读全文
posted @ 2019-09-19 22:41 草叶321 阅读(304) 评论(0) 推荐(0) 编辑