TWJ. H
# # ifndef _TWJ_H_
# define _TWJ_H_
#include
#include
#include
# define count 0;
Int o;
# endif
Zhu. CPP
# include "TWJ. H"
Int gy_link (int m, int n);
Int gb_link (int z, int x, int v);
Int main ()
{
Int a, b, c, d;
Printf (" \ n two inputs a: ");
The scanf (" % d ", & amp; A);
Printf (" b: ");
The scanf (" % d ", & amp; b);
C=gy_link (a, b);
Printf (" the greatest common divisor=% d ", c);
D=gb_link (a, b, c);
Printf (" LCM=% d ", d);
return 0;
}
Gy_link. CPP
# include "TWJ. H"
Int gy_link (int m, int n)
{
Int I, t, cost;
O=count;
If (m & lt; N)
{
T=m;
M=n;
N=t;
}
For (I=n; I & gt; 0; I -)
{
If (m % I==0 & amp; & I n %==0)
{
Cost=I;
break;
}
O++;
}
Printf (" % d total cycle time \ n ", o);
return i;
}
Gb_link. CPP
# include "TWJ. H"
Int gb_link (int z, int x, int v)
{
Int r;
R=z * x/v;
Return r;
}
A. H file and three c file as above, please the great god your smile, the younger brother in this thank you!
CodePudding user response:
[Error] ld returned 1 exit statusTo solve the
CodePudding user response:
# define count 0;