2020-08-25 12:27:15 -06:00

18 lines
368 B
C++

#include <IPhreeqc.hpp>
#include <iostream>
int main (void)
{
IPhreeqc iphreeqc;
if (iphreeqc.LoadDatabase("phreeqc.dat") != 0)
{
std::cout << iphreeqc.GetErrorString();
return EXIT_FAILURE;
}
if (iphreeqc.RunFile("ex2") != 0)
{
std::cout << iphreeqc.GetErrorString();
return EXIT_FAILURE;
}
return 0;
}