Beispiel #1
0
int main()
{
    Parser p(TARGET_FILE);
    Counter c;

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

    return 0;
}
Beispiel #2
0
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;
}