Subversion Repository Public Repository

ChemEqBalancer

This repository has no backups
This repository's network speed is throttled to 100KB/sec

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include <iostream>
#include "Element.h"
#include "Molecule.h"

using namespace std;

int main()
{
  cout << "Element test:" << '\n';
  try {
    Element a("Br");
    Element b("He");
    cout << a.getName() << '\n';
    cout << b.getName() << '\n';
  } catch (const char* e) {
    cout << "An exception occurred: " << e << endl;
  }
  cout << endl;
  cout << "Molecule test:" << '\n';
  try {
    Molecule am("Br", 2);
    cout << am.getName() << '\n';
    Molecule def("Na");
    cout << def.getName() << '\n';
    Molecule compound("Na");
    compound.addAtom("Br", 2);
    cout << compound.getName() << '\n';
  } catch (const char* e) {
    cout << "An exception occurred: " << e << endl;
  }
  cout << endl;
  return 0;
}

Commits for ChemEqBalancer/trunk/main.cpp

Diff revisions: vs.
Revision Author Commited Message
4 Diff Diff ShaunOfTheLive picture ShaunOfTheLive Thu 14 Jul, 2011 01:52:50 +0000

moved files to trunk

2 Shaun Mon 24 Jan, 2011 23:32:14 +0000