C++ 这个语法什么意思?

代码如下:
int do_extract_onefile(uf,filename,opt_extract_without_path,opt_overwrite,password)
unzFile uf;
const char* filename;
int opt_extract_without_path;
int opt_overwrite;
const char* password;
{
int err = UNZ_OK;
if (unzLocateFile(uf,filename,CASESENSITIVITY)!=UNZ_OK)
{
printf("file %s not found in the zipfile\n",filename);
return 2;
}

if (do_extract_currentfile(uf,&opt_extract_without_path,
                                  &opt_overwrite,
                                  password) == UNZ_OK)
    return 0;
else
    return 1;

}

可以看到,在实现这个函数的时候,形参里面只有名称,没有类型,类型是在()后面,且在函数体{}前面。 这个是什么写法,望赐教!

这种函数参数列表的写法是旧的格式(称为 K&R style )。
虽然C89/C90以及C99标准仍然支持这种写法。
但不建议在自己的代码中这样写,毕竟已经属于过时的风格。

如果对您有帮助,请采纳答案好吗,谢谢!

这个是函数定义的一种,确切的说这种写法是C语言中特有的,在C90标准的时候基本所有的函数的定义都是这种写法,C99之后遍不在这么写了,勿惊!