Skip to content

Instantly share code, notes, and snippets.

View DreamVB's full-sized avatar

Ben DreamVB

View GitHub Profile
@b166er-droid
b166er-droid / postfix_calc.c
Created April 28, 2020 23:14 — forked from cameronp98/postfix_calc.c
Simple postfix expression parser in C. Uses Reverse Polish Notation (RPN), i.e. 2 2 + 3 * => 12.0
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
typedef float st_type;
typedef struct {
st_type value;
struct node_t *next;
} node_t;
@Dabbler65
Dabbler65 / .gitignore
Created January 29, 2018 10:00 — forked from DreamVB/rpn.cpp
C++ Reverse Polish Notation calulator
.vs/RPN/v14/.suo
Debug/RPN.exe
Debug/RPN.log
Debug/RPN.pdb
Debug/RPN.tlog/CL.command.1.tlog
Debug/RPN.tlog/CL.read.1.tlog
Debug/RPN.tlog/CL.write.1.tlog
*.tlog
*.ilk
@dvtate
dvtate / RPN.cpp
Last active June 25, 2023 05:49
a simple RPN calculator written in C++
#include <iostream>
#include <stack>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#define MAX_LEN 200
@Mjiig
Mjiig / rc4.cpp
Created May 18, 2012 21:40
Simple RC4 encryption program
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <cstdio>
#include <cstring>
class State
{
unsigned char s[256];
int i, j;