Introduction
I used to programming with C++ 6.0 from a time ago ,and when the C# come frist i don�t like it but when i work with it i feel comfortable because all relateded function are grouped together like there is a class that have all convert functions and a class that have all Math functions and a stack class and these classes have alot of function that we need but we don�t have time to make it by ower selves .so and because i still love C++ Because its the Powerful programming language in the world i grouped some function from the C++ Headers and i wrote some functions by my self and group it together in one LIB and some Headers.
Using:
to use this LIB Past it in your solution folder .and in the VC++6.0 menu(project ->Settings)
in the Link Tab in (object/library modules)box put the name of the lib like that(CSharp.lib)
and then add the header files in your project workspace with add file to project and then include the name of the header file in your cpp file like this
#include "Math.h";
I think all fuction are clear and have the same names in C++ and C#.
But i will discuss them
--------------------------------------------------------------------------------
Class Cconvert that have all basic data types convertion like (int,double,float,long,byte,bool,Cstring )
Cconvert x;int i=19;
x.ToDouble(i);
x.ToString (i,4);
--------------------------------------------------------------------------------
Class CIntStack that take integer and put them in stack that encrease dinamicaly
CIntStack s;
s.Push(6);
s.Push(7);
s.GetCount() ;
Int buff=s.Pop();
buff= s.Pop();
buff=s.Pop();
And you will find also CstringStack and CdoubleStack that have the same functions
--------------------------------------------------------------------------------
Class CMath tha have all math fuctions that we need plus some functions ..
CMath m;
m.Round(9.6);
m.Ceil(8.6);
m.Sin(2.7);
m.SinD(90);
m.Mean(arr,size);
m.Median (arr,size);
m.Sort(arr,10);
m.LinearSearch(arr,key,size);
m.BinarySearch(arr,key,size);
m.GetMaxInArray(arr,size);
m.GetMaxIndexInArray(arr,size);
m.GetMax(var1,var2,var3);
I Hope you like it please Send me if there any problems