Simple C++ programs

Introduction:

Some simple C++ programs by Hamid Soltani. (gmail: hsoltanim)

Contents:

CSV Parser

csvdata is a simple c++ class. It can load, save and modify Microsoft Excel friendly CSV files.

It supports quotation marks, line breaks and commas in cell values.

It uses std::map to store data. It supports up to 2^32 columns and rows.

Math Expression Parser

mathparser is a simple c++ program to parse math expressions.

The program is a modified version of math expression parser presented in the book: "C++ The Complete Reference" by H.Schildt.

It supports operators: +-*/^()

It supports math functions: SIN, COS, TAN, ASIN, ACOS, ATAN, SINH, COSH, TANH, ASINH, ACOSH, ATANH, LN, LOG, EXP, SQRT, SQR, ROUND, INT.

It supports variables A to Z.

Matrix

matrix is a simple c++ program including operations and functions for matrices.

The program is a modified version of Matrix class by Jos de Jong.

It supports operators: + - * / and output operator <<

It supports functions: Ones, Zeros, Diag.

Sort

sort is a c++ program to compare speed of different sort algorithms.

The program also verifies the algorithms accuracy by comparing with std::sort function.

Compare Double Numbers

compare is a c++ program to compare two double numbers when insignificant bits not considered.

Matrix 2

matrix2 is a modified version of matrix program.

It uses std::map to store matrix elements and only stores non-zero elements.

It ignores unimportant bits of double numbers which results an absolute zero values for elements of M*Inv(M) not located on diagonal.

Solve Matrix

solve is a modified version of matrix2 program.

It can efficiently solve matrix systems.

Solve2 Matrix

solve2 is a modified version of solve program.

It is optimized for solving matrices with limited number of non-zero near diagonal elements.


Site last modified: Sep. 2016.