Question:
Can we use a null terminated integer array in the sting manipulation functions? I want to find an easy way to compare to integer strings, but it doesn't work.
If I initialize it and pass it to function like a constant * shouldn't it work?Code:Array1[0]=9 Array1[1]=8 Array1[2]=7 Array1[3]='\0' Array2[0]=6 Array2[1]=5 Array2[2]=4 Array2[3]='\0' strcmp(Array1,Array2)
Does it have to be a char string or can we manipulate a integer array by some form of convertion so that it is compatable with strcmp();Code:bool HugeInteger::isNotEqualTo(const int *Array1,const int *Counter1, const int *Array2,const int *Counter2)



LinkBack URL
About LinkBacks


