processpairs2.c:7: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘int’为什么我在'int'之前得到“error:expected'=',',',';','asm'或'__attribute__'?
是我每次编译我的文件时得到的错误,错误引用我到第7行,这是我声明main()
函数的地方。
我的主要的函数声明为
int main(int argc, char *argv[])
没有人知道是什么引起的?
任何帮助,非常感谢。
线1-6是
#include<stdio.h>
#define ROWS 4
#define COLS 10
void checkhighestpair();
int *ptotal, *pval1, *pval2
请告诉我们1-6行。 – alk
那条线之前你有什么? – chris
给你的代码你必须声明一些'struct'或者某些typedefed和缺少'; '那里你得到它 – Omkant