Search:

Type: Posts; User: rfbu

Search: Search took 0.01 seconds.

  1. Thread: functions

    by rfbu
    Replies
    6
    Views
    1,127

    are there books which explain how to have...

    are there books which explain how to have multi-thread?

    terima kasih
  2. Thread: functions

    by rfbu
    Replies
    6
    Views
    1,127

    functions

    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
  3. Replies
    7
    Views
    1,832

    hi, my understanding is that if you are...

    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;
  4. Replies
    3
    Views
    5,012

    this is my 2 cents worth... correct me if I'm...

    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.
  5. Replies
    6
    Views
    2,160

    thanks will try it and let you know how it goes

    thanks

    will try it and let you know how it goes
  6. Replies
    6
    Views
    2,160

    thanks for the hints and tips. however, I...

    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 *...
  7. Replies
    6
    Views
    2,160

    pointer to pointer and 2D arrays

    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...
  8. Replies
    2
    Views
    1,447

    well, the books will tell you that they are very...

    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;
    };
    ...
  9. Thread: Kernel hacking

    by rfbu
    Replies
    7
    Views
    2,227

    to be good at assembly might be a tall order for...

    to be good at assembly might be a tall order for me but thanks for the advice. will attempt to master assembly.
  10. Thread: Kernel hacking

    by rfbu
    Replies
    7
    Views
    2,227

    The page mentioned at the URL is not found. ...

    The page mentioned at the URL is not found.

    Perhaps there was a typo error?

    thanks in advance.
  11. Thread: pointer

    by rfbu
    Replies
    5
    Views
    1,134

    I came to know that a pointer to an array is just...

    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.
  12. Thread: Little Unsure?

    by rfbu
    Replies
    8
    Views
    1,953

    from the looks of things, you might want to learn...

    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...
  13. Thread: struct

    by rfbu
    Replies
    4
    Views
    1,009

    struct

    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;
    };
  14. Thread: pointer

    by rfbu
    Replies
    5
    Views
    1,134

    thanks for the tip

    thanks for the tip
  15. Thread: pointer

    by rfbu
    Replies
    5
    Views
    1,134

    pointer

    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...
  16. Thread: String extraction

    by rfbu
    Replies
    2
    Views
    1,768

    you could do the following go to first...

    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'
  17. Replies
    10
    Views
    1,759

    alternatively, try looking for other books at the...

    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...
  18. Replies
    10
    Views
    1,759

    I faced the same problem as you i.e. "not cut out...

    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...
  19. Thread: Efault

    by rfbu
    Replies
    4
    Views
    1,957

    actually, there more code and I think it's got...

    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
  20. Thread: Efault

    by rfbu
    Replies
    4
    Views
    1,957

    here's my code, please keep in mind that I'm...

    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...
  21. Replies
    22
    Views
    3,399

    scanf("%d",&r->id); Hi guys, I was...

    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
    ...
  22. Replies
    2
    Views
    4,159

    try this... char *f; scanf(f,"%s");//does...

    try this...

    char *f;
    scanf(f,"%s");//does this work, please check for me...

    while( 1 )
    {
    if(strcmp(f,"correct answer")==0)
    break;
  23. Replies
    3
    Views
    2,191

    main(int argc, char *argv[])

    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...
Results 1 to 23 of 23