08 2023 档案

摘要:``` #include #include #define INIT_SIZE 100 #define INCRE_SIZE 10 typedef int ElemType; typedef struct SqList //1.顺序表的动态存储 { ElemType *pList; int leng 阅读全文
posted @ 2023-08-25 17:14 TCcjx 阅读(21) 评论(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 阅读全文
posted @ 2023-08-23 19:49 TCcjx 阅读(14) 评论(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; 阅读全文
posted @ 2023-08-23 19:40 TCcjx 阅读(26) 评论(0) 推荐(0)
摘要:``` #include #include using namespace std; /*判断素数*/ int isprime(int number) { if(number> number; if(isprime(number)){ cout << "the number is prime"<< 阅读全文
posted @ 2023-08-23 19:33 TCcjx 阅读(8) 评论(0) 推荐(0)