蓝桥杯算法提高VIP-复数求和-题解(C++代码) ###没有用链表,由于自己太垃圾不是很熟练####解题思路:**1、用类的成员函数来重载运算符2、答案分各种情况,复数,纯虚数,纯实数,自己设置好是加法运算还是减法运算,提前写好重载函数3、用while来控制输入依次累加**####代码如下:```cpp#includeusingnamespacest 题解列表 2019年10月14日 0 点赞 0 评论 1044 浏览 评分:8.0
蓝桥杯算法提高VIP-复数求和-题解(C语言代码) #include#include#include//定义结构体typedefstructlinklist{intre;//实部intim;//虚部structlinklist*next;//指针域}Linklist;//自定义类型//创建一个节点, 题解列表 2019年06月25日 0 点赞 0 评论 1472 浏览 评分:0.0
蓝桥杯算法提高VIP-复数求和 (C语言代码)使用链表求解 摘要:#include<stdio.h> #include<stdlib.h> typedef struct _complex{ int real; int imag; s…… 题解列表 2019年05月25日 0 点赞 0 评论 1754 浏览 评分:0.0
(超短代码,你值得拥有) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; int m; int num1=0,num2=0; scanf("%d",&m); while…… 题解列表 2019年04月02日 0 点赞 0 评论 1504 浏览 评分:3.0
没有用链表。。。。居然对了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,d,i=0,j=0; scanf("%d",&a); for(d=0;d<a;d++){ …… 题解列表 2019年03月08日 0 点赞 0 评论 1179 浏览 评分:0.0
蓝桥杯算法提高VIP-复数求和 (C语言代码) 摘要: //解题思路:键盘读入 ,链表存储 ,遍历链表, 复数相加在输出函数里完成 //注意事项:照着题目来 初始化那个temp头结点,输出函数那个temp就是个临时结点 …… 题解列表 2019年02月24日 1 点赞 0 评论 3222 浏览 评分:9.9
蓝桥杯算法提高VIP-复数求和 (C语言代码) 摘要:#include<stdio.h>struct A{ int shibu; int xubu; struct A *p;};int main(){ int n,i,shi=0,xu=0; scanf(…… 题解列表 2019年02月14日 0 点赞 0 评论 1249 浏览 评分:0.0
蓝桥杯算法提高VIP-复数求和 (C语言代码) 摘要:解题思路: %+-d :如果该数是整数则输出 + 反之输出 - 例如:a=6, %+-a,输出+6; b=-3, %+-b, 输出 -3;注意事项:参考代码:…… 题解列表 2018年11月12日 2 点赞 0 评论 1558 浏览 评分:8.7
可AC (C语言代码) 摘要:解题思路: 注意事项: 参考代码: #include<stdlib.h> #include<stdio.h> typedef struct node { int real;…… 题解列表 2018年07月26日 1 点赞 0 评论 2634 浏览 评分:0.0
蓝桥杯算法提高VIP-复数求和 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; while(cin>>n) { …… 题解列表 2018年04月22日 0 点赞 0 评论 1516 浏览 评分:0.0