are there books which explain how to have multi-thread?
terima kasih
Type: Posts; User: rfbu
are there books which explain how to have multi-thread?
terima kasih
in C, it is possible to run 2 infinite loops at the same time?
if yes, what is it called? parallel programming???
many thx for any responses
hi,
my understanding is that if you are going to use char *pt, make sure you initialise pt to something
e.g.
char *pt;
char array[10];
pt = array;
this is my 2 cents worth...
correct me if I'm wrong, but I always thought that binary trees are used with structs . of course, binary trees are similar to link list.
thanks
will try it and let you know how it goes
thanks for the hints and tips.
however, I compiled the code but I got an error
"ANSI C++ forbids implicit conversion from 'void *' in assignment"
for this line
/code/ pa = malloc( 30 *...
is there a way to initialise a pointer to pointer to the 2D array?
char **p;
char (*q)[5];
I mean a pointer to an array to a 2D array, I know that. but what about the above? I was trying it...
well, the books will tell you that they are very similar i.e. how to declare them, how to access the variables even declaring them
e.g.
struct example{
char var1;
char var2;
};
...
to be good at assembly might be a tall order for me but thanks for the advice. will attempt to master assembly.
The page mentioned at the URL is not found.
Perhaps there was a typo error?
thanks in advance.
I came to know that a pointer to an array is just like a pointer to a pointer
I had learnt pointers to pointers so the replies I got helped me to understand pointers to arrays.
Thanks everyone.
from the looks of things, you might want to learn how to use arrays, how to declare them, assign values, how to access each element.
then, you might also want to learn how to use pointers because...
hello again,
In books that I have read, the way to declare a struct is as shown in (a)
However, I have seen code which is shown in (b)
a)
struct node{
int number;
};
thanks for the tip
I have used pointers to character and array.
char *q;
recently, I came across pointer to array e.g.
char (*p) [];
is it useful to know how to use the above? I have searched numerous books...
you could do the following
go to first character in array
{
is character last in array
exit
if character is >= 'a' and <= 'z'
and if character is >= 'A' and <= 'Z'
alternatively, try looking for other books at the nearest library
I came across a book on Microsoft Quick C, I thought it was pretty good, try looking for it
I always felt that pointers is very...
I faced the same problem as you i.e. "not cut out for C"
In actual fact I did not major in software in uni and still managed to get a job as a programmer... I sometimes wonder whether that was a...
actually, there more code and I think it's got something to do with pointers.
I think I'll have to debug it really slowly...
thanks anyway
here's my code, please keep in mind that I'm using a really old compiler. Also, I don't know what version I'm using.
by the way, even with "system("ls");" errno is still 14 i.e. EFAULT
incredible...
scanf("%d",&r->id);
Hi guys,
I was just wondering... for the above code, since r is already a pointer, why do you want the address of the pointer?
wouldn't it be better to have
...
try this...
char *f;
scanf(f,"%s");//does this work, please check for me...
while( 1 )
{
if(strcmp(f,"correct answer")==0)
break;
Hello,
I have a problem with main(int argc,char *argv[])
The compiler says,"1705, function prototype is an ANSI ..."
The funny thing is , this same code works perfectly well on...