08 2023 档案
发表于 2023-08-25 17:14阅读:9评论:0推荐:0
摘要:``` #include #include #define INIT_SIZE 100 #define INCRE_SIZE 10 typedef int ElemType; typedef struct SqList //1.顺序表的动态存储 { ElemType *pList; int leng
阅读全文 »
发表于 2023-08-23 19:49阅读:8评论:0推荐:0
摘要:``` #include using namespace std; /*求解完数,数字的因数等于该数字,2-20000*/ int main() { int num = 0; for(int i =2;i<=20000;i++){ int x = i,sum=0; for(int j=1;j<x;j
阅读全文 »
发表于 2023-08-23 19:40阅读:7评论:0推荐:0
摘要:``` #include #include using namespace std; int main() { int num = 0,count=0,sum = 0; cin >> num; int x = num; while(x!=0){ x=x/10; count++; } x= num;
阅读全文 »
发表于 2023-08-23 19:33阅读:3评论:0推荐:0
摘要:``` #include #include using namespace std; /*判断素数*/ int isprime(int number) { if(number> number; if(isprime(number)){ cout << "the number is prime"<<
阅读全文 »