Compiler construction flex-bison中的主要参数

Compiler construction flex-bison中的主要参数,compiler-construction,bison,flex-lexer,Compiler Construction,Bison,Flex Lexer,对不起我的英语。 我需要取主函数的参数值。 我对野牛说: int main (int argc, char ** argv) 我在Windows中编译: file.exe <input.txt 及 为什么?? 谢谢。尝试“file.exe input.txt”,而不使用“这与flex或bison有什么关系?”? argc = 1 argv = "file.exe"

对不起我的英语。 我需要取主函数的参数值。 我对野牛说:

int main (int argc, char ** argv)
我在Windows中编译:

file.exe <input.txt

为什么??
谢谢。

尝试“file.exe input.txt”,而不使用“这与flex或bison有什么关系?”?
argc = 1
argv = "file.exe"