摘要: 宏定义的本质: 字符替换,没有类型转换,一定记住 来看一个例子: #include<bits/stdc++.h> using namespace std; #define AREA(a,b) a+b int main() { int s=AREA(3,4)*AREA(3,4); cout << s 阅读全文
posted @ 2019-11-23 19:07 ChunhaoMo 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 题意: 特殊数字”是指只能被分解为2,3,7的乘积的数字。“特殊数字”序列为1, 2, 3, 4, 6, 7, 8, 9, 12, 14, ...展示了前10个“特殊数字”。按照惯例,1也是“特殊数字”。给定整数n,写一个程序,找到序列中,第n个“特殊数字”。如:n=9,找到“特殊数字”序列中第9位 阅读全文
posted @ 2019-11-23 16:35 ChunhaoMo 阅读(679) 评论(0) 推荐(0) 编辑