Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /********************************FUNCTIONS.CPP********************************/
- #include "define.h"
- #include "functions.h"
- struct CompValue Complex[size1];
- float module_complicate(float x, float y) {
- return sqrt(pow(x, 2) + pow(y, 2));
- }
- CompValue input(CompValue *Complex){
- scanf("%f %f", &Complex->x, &Complex->y);
- Complex->module_complicate = module_complicate(Complex->x, Complex->y);
- return *Complex;
- }
- /********************************FUNCTIONS.H********************************/
- #include <math.h>
- #include <stdio.h>
- #include "define.h"
- struct CompValue
- {
- float x;
- float y;
- float module_complicate;
- };
- extern CompValue input(CompValue *Complex);
- extern float module_complicate(float x, float y);
- extern struct CompValue Complex[size1];
- /********************************DEFINE.H********************************/
- #define _CRT_SECURE_NO_WARNINGS
- #define size1 100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement