1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-27 04:28:51 -05:00
catima/examples/materials.cpp

22 lines
506 B
C++
Raw Normal View History

2017-07-25 12:19:11 -04:00
#include "catima/catima.h"
#include <iostream>
using std::cout;
using std::endl;
int main(){
catima::Material graphite = catima::get_material(6);
2018-01-18 13:20:42 -05:00
catima::Material water = catima::get_material(catima::material::Water);
2017-07-25 12:19:11 -04:00
cout<<"Material info"<<endl;
cout<<"Molar Mass = "<<graphite.M()<<endl;
cout<<"density = "<<graphite.density()<<endl;
cout<<"Material info"<<endl;
cout<<"Molar Mass = "<<water.M()<<endl;
cout<<"density = "<<water.density()<<endl;
return 0;
}