#include <stdio.h>
#include <stdlib.h>
#include <math.h>
typedef struct tagPoint
{
double x, y;
} point, *pPoint;
typedef struct tagSource
{
point location;
float power;
} source, *pSource;
typedef struct
{
{
struct tagSource tagSource[100],random [2];
struct tagPoint};
double spl(double w, double r);
double spl_total(struct tagSource *srcs, int count, struct tagPoint dest);
double distance(struct tagPoint p1, struct tagPoint p2);
double power(double w);
int sort(struct tagSource *srcs, int count);
int display(struct tagSource *srcs, int count);
int main (int argc, char *argv[])
{
#include <stdio.h>
#include <stdlib.h>
#