-
-
Save john01dav/034da66247bdbfeef2b0 to your computer and use it in GitHub Desktop.
term.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef TERM_H | |
#define TERM_H | |
#include <vector> | |
#include <string> | |
struct Term{ | |
double number; | |
char operation; | |
}; | |
std::vector<Term> parseEquation(std::string equationString); | |
void simplifyEquation(std::vector<Term> &equation); | |
void simplifyEquation(std::vector<Term> &equation, const char &operation); | |
void printEquation(const std::vector<Term> &equation); | |
#endif //TERM_H |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment