中科院分词工具2015c++调用接口

//我想在运行时
//输入要分词的文件名和生成的文件名
//要怎样写呀c++的

#include
#include "NLPIR.h"
#pragma comment(lib, "NLPIR.lib")
using namespace std;

int fen()
{
if(!NLPIR_Init())
{
printf("fails\n");
return 0;
}
char a[50]={"111.txt"};
char b[50]={"111_cla.txt"};

NLPIR_FileProcess("a","b",0);
NLPIR_Exit();
return 0;

}

void main()
{
fen();
}

使用带命令的 main 函数,如下:
int main( int argc, char argv[] ) / 带参数形式 */
{
...
return 0;
}

 //c.c
#include "stdio.h"
int main(int argc, char *argv[])
{
    int count;
    printf("The command line has %d arguments:
", argc - 1);
    for(count = 1; count < argc; count++)
        printf("%d: %s
", count, argv[count]);
    return 0;
}
编译运行,在命令行输入c I love you 回车,下面是从命令行运行该程序的结果:

The command line has 3 arguments:

1:I

2:love

3:you

Nipir_process(a,b,0)

nlpir_fileprocess(a,b,0)