Skip to content

Instantly share code, notes, and snippets.

@john01dav

john01dav/term.h Secret

Created January 24, 2016 11:18
Show Gist options
  • Save john01dav/034da66247bdbfeef2b0 to your computer and use it in GitHub Desktop.
Save john01dav/034da66247bdbfeef2b0 to your computer and use it in GitHub Desktop.
term.h
#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