C++ HOMEWORK
#ifndef ASSEMBLER_H #define ASSEMBLER_H #include <fstream> #include <sstream> #include <string> #include <map> #include <stdexcept> using namespace std; class NullPointerException: public runtime_error { public: NullPointerException(): runtime_error("Null Function Pointer!") { } }; class Assembler { typedef int (Assembler::*FP)(istringstream &); map<string, FP> jumpTable; public: Assembler(); int assemble(fstream&, fstream&); int load(istringstream &); int loadi(istringstream &); int store(istringstream &); int add(istringstream &); ... }; // Assembler #endif