- 博客(3)
- 收藏
- 关注
原创 一位数组、二维数组的数据类型
一维数组: int arr[4];···········································数据类型 arr···················································int *p; arr+1··············································· int *p; arr[0]······...
2019-10-31 20:48:57 127
原创 假设在n进制下,等式567*456=150216成立,则n的值为?
例题:假设在n进制下,等式567*456=150216,n的值是? A.9 B.10 C.12 D.18 由题可列等式: 20n^4 + 49n^3 + 88n^2 + 71n+42 = n^5 + 5n^4 + 2n^2 + n+6··················(1) ①两边同时%n 42%n=6...
2019-10-17 19:50:37 338
原创 任给一整数,输出它的位数(三种方法)
任给一整数,输出它的位数(三种方法) #include<stdio.h> #include<math.h> //每次丢弃一位数 int Count(long long n) { int tmp=0; if(n==0) { return 1; } while(n!=0)//n>0 { tmp++; n/=10; } return tmp; } //先得到个位数,打印出来...
2019-10-09 20:32:16 3339
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人