未完待续

Posted p201821430008

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了未完待续相关的知识,希望对你有一定的参考价值。

 

#include "stdio.h"
#include "stdlib.h"
typedef struct complex{
 int real;
 int imagine;
 complex *next;
}complex,*node;
int main()
{
 int i,j=0;
 printf("若想输入一个复数请按1,退出请按0");
 scanf("%d",&i);
 
 while(i==1)
 {
  if(i==1)
  {
   int a,b;
   printf("请输入实部:/n");
   scanf("%d",&a);
   printf("请输入虚部/n");
   scanf("%d",&b);
   node q;
   q = head;
   q->real = a;
   q->imagine = b;
   node p;
   p = (complex*)malloc(sizeof(complex));
   q->next = p;
   q = p;
   p->next = NULL;
   j++;
  }
  printf("若想输入一个复数请按1,退出请按0");
  scanf("%d",&i);
 } 
 return 0; 
}
/*node add(complex a,complex b)
 {
  complex *c;
  c->real =a->real+b->real;
  c->imagine =a->imagine+b->imagine;
  return c;   
 }
node reduce(complex a,complex b)
{
  complex c;
  c->real =a->real+b->real;
  c->imagine =a->imagine+b->imagine;
  return c;
 } 
node multiply(complex a,complex b)
{
  complex c;
  c->real =a->real*b->real-a->imagine*b->imagine;
  c->imagine =a->real*b->imagine+a->real*b->imagine;
  return c;
 } 
 
 
 */

 

以上是关于未完待续的主要内容,如果未能解决你的问题,请参考以下文章

前端调试(未完待续)debugger

未完待续

ant使用(未完待续)

漫谈回溯(未完待续)

未完待续

未完待续