摘要: C++ 报错 'gcd' was not declared in this scope 最近想用gcd(a, b)计算a和b的最大公约数,结果遇到如下错误: [Error] 'gcd' was not declared in this scope 解决方法 用的时候不要忘记了__ 示例: #incl 阅读全文
posted @ 2021-03-12 15:29 TR_Goldfish 阅读(768) 评论(0) 推荐(0) 编辑
摘要: 【C++】gcd函数的写法 阅读全文
posted @ 2021-03-12 15:17 TR_Goldfish 阅读(581) 评论(0) 推荐(0) 编辑
摘要: ![printf](https://img2020.cnblogs.com/blog/1639977/202103/1639977-20210312150516706-1969968375.png) ![scanf](https://img2020.cnblogs.com/blog/1639977/202103/1639977-20210312150528679-144482768.png) 阅读全文
posted @ 2021-03-12 15:06 TR_Goldfish 阅读(157) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2020.cnblogs.com/blog/1639977/202103/1639977-20210312145736160-690883952.png) 阅读全文
posted @ 2021-03-12 14:58 TR_Goldfish 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 1008 数组元素循环右移问题 (20 point(s)) 一个数组A中存有N(>0)个整数,在不允许使用另外数组的前提下,将每个整数循环向右移M(≥0)个位置,即将A中的数据由(A0A1⋯A**N−1)变换为(A**N−M⋯A**N−1A0A1⋯A**N−M−1)(最后M个数循环移至最前面的M个位 阅读全文
posted @ 2021-03-12 14:26 TR_Goldfish 阅读(35) 评论(0) 推荐(0) 编辑