complex.h

来自「C的有理數的複數算法 一般資訊學院要求 一般來說會是考題之一」· C头文件 代码 · 共 16 行

H
16
字号
#ifndef _COMPLEX_H_
#define _COMPLEX_H_

#include "Rational.h"

struct complex{
	Rational real;
	Rational imag;
};
typedef struct complex Complex;

void initComplex(Complex * pc);
Complex multiplyComplex(Complex *pc1, Complex *pc2);
void printComplex(Complex *pc);

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?