Skip to content

Instantly share code, notes, and snippets.

View tina1998612's full-sized avatar
:octocat:
DigitalNomad

李婷婷 Lee Ting Ting tina1998612

:octocat:
DigitalNomad
View GitHub Profile
cb13cf4bf1b142aab8dc9d3c73d54716caf14f7c
0xEffB8759ACB5C5cf5A97C80D7400F8fBd4F81Eb6
pragma solidity ^0.4.11;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns (uint256) {
uint256 c = a * b;
0x459631287154342Fa7C50433e133320fA05042E4
0xF065BB606f3CFe37e0DaA4C3d9E715F9e92edA3A
0x45A49943f43b912b70C2fDAC538719057e4Af7dA
#include <iostream>
#include <sstream>
using namespace std;
struct Node
{
char data;
Node* next;
};
#include "bigDecimal.h"
#include <iostream>
#include <sstream>
#include <stack>
using namespace std;
// helper functions
bool isPositive(Node* b){
if(b->data == '-') return false;
return true;
/*
* bigDecimal.h
*/
#ifndef BIGDECIMAL_H_
#define BIGDECIMAL_H_
#include <iostream>
#include <string>
#include <sstream>
#include "bigDecimal.h"
#include <iostream>
#include <sstream>
#include <stack>
#include <math.h>
using namespace std;
// helper functions
bool isPositive(Node* b){
if(b->data == '-') return false;