摘要: 阅读全文
posted @ 2025-11-03 23:04 bluepoet 阅读(5) 评论(0) 推荐(0)
摘要: //计算复数 #include <iostream> #include <iomanip> using namespace std; typedef struct{ float x; float y; }Comp; //打印复数的函数 void Printer(Comp res) { if (res 阅读全文
posted @ 2025-11-02 23:23 bluepoet 阅读(5) 评论(0) 推荐(0)
摘要: #include <stdio.h> struct complex{ int real; int imag; };//结构体定义:分为实部和虚部 struct complex multiply(struct complex x, struct complex y); //函数声明 int main( 阅读全文
posted @ 2025-11-02 23:09 bluepoet 阅读(4) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-11-02 00:43 bluepoet 阅读(4) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int main(){ int n; cin>>n; int tempM,sumM; int tempR,sumR; sumM=0; sumR=0; tempM=100000; tempR=1; for(int i=0 阅读全文
posted @ 2025-11-02 00:28 bluepoet 阅读(4) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-11-01 08:08 bluepoet 阅读(2) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-10-31 23:59 bluepoet 阅读(5) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-10-31 18:37 bluepoet 阅读(7) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2025-10-30 00:09 bluepoet 阅读(2) 评论(0) 推荐(0)
摘要: #include <iostream> #include <cmath> using namespace std; int main(){ int n; cin>>n;//输入给出的正数的个数 int*arr=new int[n]; for(int i=0;i<n;i++){ cin>>arr[i] 阅读全文
posted @ 2025-10-30 00:07 bluepoet 阅读(6) 评论(0) 推荐(0)