#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[])
{
错误消息如下:C:15:预期说明符限定符列表前“{”令牌C编程错误:之前预计符限定符列表“{”
我试图查找如何解决这个问题,但我处于死胡同。请帮我修补这个。由于
您应该改进您的代码格式。为什么你没有用对应的'}'关闭最后一个''''?与第19行相同。 – ericbn 2014-10-19 14:05:46
第15行是'} source,* pSource;'是吗? – 2014-10-19 14:06:47
请在发布之前清理你的代码,这是一个完整的混乱。 – 2014-10-19 16:33:39