Hey guyz if i wanna know how to find size of unsigned char*?
void func1(unsigned char* str)
{
int a;
a=??
////////////////now how to store size of str in a????
}
User Profile
Collapse
-
how to find size of unsigned char* ??
-
i tried and geting messed up i think whole program have to be made again.
So i Can any1 plzz provide me whole program for above question?? -
but dude i have to convert it into char* by any how to perform necessary operations.
Plzz tell me how????????????Leave a comment:
-
thanks it worked but 1 more problem after it:-
i am trying to convert it into char* using static cast but cant :-
struct BinaryData* DeFragment::def ragment(unsigne d char **stream, int nOfPackets)
{
char **stream1=NULL;
stream1=new char*[2];
stream1[0]=static_cast<ch ar*>(stream[0]);
}
getting error -
: error C2440: 'static_cast'...Leave a comment:
-
i said i am new so didnt new how to post.
Actually i had logical errors in the program .
I have writen also that my program result shows 0.0% accuracy.
And this was typed in turboc++ in whioch we have to use iostream.h and coni.h etc
i have uploaded vc++ version of my program but getting logical errors as well as 1 syntax error.
Plz any1 provide me ur own solution of this...Leave a comment:
-
u can provide solutions either in vc++ devc++ or turboc++ i mean on any compiler u want
but plzz provide me solution this is my first experience of asking a question so forgiveif my way of asking is not so clear.
But plz tell me solution i had been working since 3 days afte test but cant figur eout how my code gone wrong and whats the optimum solution :(Leave a comment:
-
Help in this program plz.
Can some1 tell me whats wrong in my code or plz provide your own solution so that i can learn from it.I got this question in a text whos result shows 0.0% accuracy in this code althought getting same output.Question is below:-
Hey i am solving this question :-
Time-Division Multiplexing (TDM) is a type of multiplexing in which two or more signals or bit streams are transferred simultaneously as sub-channels...Last edited by sicarie; Mar 22 '08, 11:17 PM. Reason: WTF, bold everywhere, no code tags, all caps, aaaaarrrrrrrrrrrgggggggggggghhhhhhh -
How to pass unsigned char** to a function?
Hey there in this program i am passing a unsigned char** from main fuction but stream to which is the argument is not taking value plz help figure out y?
[code=cpp]
struct BinaryData* DeFragment::def ragment(unsigne d char **stream, int nOfPackets)
{
int i=0,max=0,k=0,p tr=0,low=0,j,t= 0,flag=0,size=0 ,c[3],n=1;
const int row=nOfPackets;
unsigned char *tempstr=NULL;
int **temp=NULL;...Last edited by sicarie; Mar 22 '08, 11:10 PM. Reason: Code tags, all caps for no reason bothers me, full English
No activity results to display
Show More
Leave a comment: