示例#1
0
文件: main.cpp 项目: Quentin-B/SDQI
int main()
{
    Parser p(TARGET_FILE);
    Counter c;

    string s;
    while((s = p.next()) != "")
        c.analyzeLine(s);
    c.outputAnalysis(cout);

    return 0;
}
示例#2
0
文件: test1.cpp 项目: Quentin-B/SDQI
int test_main(int, char *[])
{
	Parser p(TARGET_FILE);
    Counter c;

    string s;
    while((s = p.next()) != "")
        c.analyzeLine(s);
    c.outputAnalysis(cout);
    
	
	BOOST_CHECK(c.getTotalLoC()==7);

	return 0;
}