#ifndef PRINT_DEF #define PRINT_DEF #include //for strings #include //for printf,scanf (library for C) #include //for atoi, atof #include //C++ header for string #include #include #include #endif #include #include #ifndef PARSE_DEF ``` #define PARSE_DEF #define MAXBUFLEN 200 void getFromString (const char* buf, int* n); void getFromString (const char* buf, size_t* n); void getFromString (const char* buf, double* n); void getFromString (const char* buf, char* n); int parseString(FILE* input, const char* keyword, const size_t bufLen, char* n); template int parseNumber(FILE* input, const char* keyword, const size_t bufLen, T* n); template int parseArray(FILE* input, const char* keyword, const size_t bufLen, const size_t arrLen, T y[]); template int parseDropSpec(FILE* input, const char* keyword, const size_t bufLen,int* dropType, std::vector& dropPara); template<> int parseDropSpec(FILE* input, const char* keyword, const size_t bufLen,int* dropType, std::vector& dropPara); int parseDrop(FILE* input, const char* keyword,char dropSpec[][10],double dropMole[],const size_t bufLen); #include "parse.hpp" #endif