00001 #include <elements.h> 00002 #include <bond.h> 00003 00004 void main() 00005 { 00006 // instanciates a new Hydrogen and a new Carbon atom 00007 Atom* a1 = new Atom(elements["H"]); 00008 Atom* a2 = new Atom(elements["C"]); 00009 00010 // create a single bond between the two atoms 00011 Bond* b1 = new Bond( a1, a2, SINGLEBOND ); 00012 00013 // describe the newly created bond 00014 b1->describe(); 00015 }