C++ Projects:
|
Complex Number Class
This Class was created to mnipulate complex numbers and applying the most common operations on them like
addition, multiplication, division etc
source: Complex Number Class
|
String Tokenizer Class v3.0
This is a totaly new version of the original String Tokenizer Class that i had wrote before
The purpose was to simplify the implementation of the class and also to make the over all
routines used to tokenize strings more efficient than in the previous versions.
Here are some of the functions that can be found in the current class:
-current() : returns the current token for the current position in the string
-prev() : returns the previous token of the current string
-last() : returns the last token of the current string
-first() : returns the first token of the current string
source: Tokenizer Class
|
String Class
This code features a complete string class, there are many routines for manipulating strings in the class.
There are functions like "replace", "erase", "reverse", "find", "substr" ...
So, there is a wide range of functions available, even the function like "right", "left" and "mid" wich is
normaly use Visual Basic are also implemented in the class.
source: String Class
|
String Tokenizer Class
This class is a very covenient class for manipulating tokens inside a string.
It offers many functions for manipulating tokens. With all this functions,
string tokenizing becomes very easy!
source: String Tokenizer Class
|
Rational Number Class
with this class you'll be able to perform the most usual operations on rational numbers( +, -, *, /.. ),
but also there are some suplementary features like the "exponential function", "logarithm function" etc.
source: Rational Number Class
|
Simple FSM
This program can determin very accurately the nature of the user input,
it detects whether it is an integer, a float, a number in scientific notation
or simply an invalid input. To be capable of doing this the program uses a simple FSM
(FINITE STATE MACHINE) to represent the possible states of the input.( INT, FLOAT,.. )
source: Simple FSM
|
Polygon Drawer
This program can be use to draw any polygon that is a "regular polygon",
a "star polygon" or "star figure". The results are pretty cool! For more
informations about polygons in general,you can visit the following site:
http://mathworld.wolfram.com/RegularPolygon.html By the way,if you do like
these program,please dont forget to rate it. Because without any rating,
i will not know how good or bad the program is.
source: Polygon Drawer
|
String Manipulation Routines
this is a very useful collection of routines to manipulate strings!
source: String Manipulation Routines
|
Equation Solver
These program can solve first and second degree polynomial equation.
It evens works when the roots are complex numbers(when delta is a negative value).
source: Equation Solver
|
Integer Test
Sometimes we need a way to test the user input to know if it is an integer, i have
seen many algorythm for doing this,but a lot of them are incomplete since they only check
to see if the input contain the numeric values from 0 to 9 if so it is said that the input
is a number.Here you will fine a more precise way to test the user input for knowing if it
is an integer.
source: Integer Test
|
Lines Counter
Have you ever wanted to count the lines of your code in C or C++ without
the commentaries and blank lines,well with this program you can do it.
source: Lines Counter
|
Number Test
This program executes a very precise test to determining if the user input is a number.
This test valid for any real numbers.Example: +56, -896.223, 123,.2335, 3.141592653 are all accept as numbers.
But 142-555, 23+56, (55*898) etc are not accept as numbers by this program.
source: Number Test
|
Breaking Numbers
This code can be use for breaking numbers.
An example of it: lets say that a user enter "561365" as input,
the program will put every single digits of this number into an array.
So later you can do any manipulation that requires to use this number's digits.
source: Breaking Numbers
|
2D dynamic array
2D dynamic array
These program shows how to create and pass a 2D dynamic array to a function.
It can be very useful for applications that you might create.
source: 2D dynamic array
|
Guessing Games
This program can guess any number between one and nine that you might
have in mind by asking you some simple questions.
source: Guessing Games
|
String Replacer
The function "replace_string" included in this program will replace all occurence
of a certain string by another one and the function "find_occurence" will count
the number of occurance of a string in another string. Unlike most string replacer
function,this one have a special feature that makes it possible to avoid buffer overflow.
source: String Replacer
|
Bubble Sort
This program use the "Bubble Sort Algorythm" for ordering a list of names alphabetically.
It also shows how to swap two strings.
source: Bubble Sort
|