我一直在努力编译这个程序,但是我一直想出错误:"期待'''在'''token'之前,在函数1被声明的底部附近..我在那里的代码对我来说很好看所以我我真的不太确定发生了什么..请对此有所了解,我几乎是C的菜鸟所以请你好...
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
#define maxrow 20 //defines maxrow as a constant of 20
#define maxcol 30 //defines maxcol as a constant of 30
void function1(char array[][maxcol]);
void function4(int, int); //function to display the pairs count
int main( void )
{
int x = 0;
int y = 0;
int row = 0;
int col = 0;
int countX = 0;
int countY = 0;
srandom( (unsigned) time(NULL) );
char array[maxrow][maxcol];
function1(array);
/*
for (x=0;x<maxrow;x++)
{
for (y=0;y<maxcol;y++)
{
array[x][y] …Run Code Online (Sandbox Code Playgroud)