A Simple Truth Table Generator

A Simple Truth Table Generator

Truth Table Generator is a very simple application that lets you solve logical expressions and validate correctly. The application is written in ANSI-ISO C + + and compiled with Visual Studio 2008. All the code is properly documented and there is also documentation generated by doxygen.

The project still in development and is released under the BSD license.

Download:

A critical code section:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
bool Expression::Valid()
{
this->errors.clear();
int IndexOfErrors = 0;

for (vector::iterator i = this->rules.begin(); i != this->rules.end(); i++)
{
if (!const_cast(*i)->Valid())
{
this->errors.insert(errors.end(), const_cast(*i)->FindError());
IndexOfErrors++;
}
}
return (IndexOfErrors == 0);
}

I hope you find it useful !

A Simple Truth Table Generator ← Back

What do you think?

Name

E-Mail

Website

Message