This file contains 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
/********************************************************************* | |
LZ 77, 78, W Algorithms | |
------------------- | |
_ | |
___ ___ __| | ___ _____ ___ __ ___ | |
/ __/ _ \ / _` |/ _ \ / _ \ \/ / '_ \ / _ \ | |
| (_| (_) | (_| | __/ | __/> <| |_) | (_) | | |
\___\___/ \__,_|\___| \___/_/\_\ .__/ \___/ | |
|_| | |
This file contains 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
struct Node{ | |
int index; | |
string data; | |
Node *next; | |
}; | |
void st_Node(Node *head, int index, string data){ | |
head->index = index; | |
head->data = data; | |
head->next = NULL; |
This file contains 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
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <sstream> | |
using namespace std; | |
struct node{ | |
int Coefficient_field; | |
int Exponent_field; |
This file contains 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
#include <iostream> | |
#include <stack> | |
#include <string> | |
using namespace std; | |
// Simply determine if character is one of the four standard operators. | |
bool isOperator(char character) { | |
if (character == '+' || character == '-' || character == '*' || character == '/') { | |
return true; |
This file contains 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
#include<iostream> | |
using namespace std; | |
class stack{ | |
private: | |
struct node{ | |
int data; | |
node *next; | |
}; |