#include using namespace std; struct item { char type; string s; int i; }; struct elreader { string line; int pos; elreader(string s); char getnext(); char peeknext(); string readsym(); int readnum(); item readpart(); }; struct element { string name, symbol; double atwt; int atno; void print(); element(); element(int an, string sy, string nm, double aw); }; ostream & operator<<(ostream & os, const element & e); struct ptable { element T[150]; int max, num; ptable(); void read_table(); element find_sym(const string & sy); };