Search:

Type: Posts; User: sakura

Search: Search took 0.00 seconds.

  1. Thread: AVL Tree Insert

    by sakura
    Replies
    3
    Views
    5,923

    Okay the code was messed up, but has been editted...

    Okay the code was messed up, but has been editted now. Problem persists. Please help me out!!!
  2. Thread: AVL Tree Insert

    by sakura
    Replies
    3
    Views
    5,923

    AVL Tree Insert

    okay. So I have this code for AVL tree that works fine!



    #include<stdio.h>
    #include<stdlib.h>


    typedef struct node
    {
  3. Replies
    3
    Views
    1,448

    C++ standard libraries

    Okay, this may sound lame, but I really can't find an answer.

    Who codes the C and C++ standard libraries?

    Thanks in advance.
  4. Replies
    1
    Views
    795

    Please debug this!!!

    #include<stdio.h>
    #include<stdlib.h>


    int CompareIntegerDefault(void *data1, void *data2)
    {

    if(*(int *)data1>*(int *)data2)
    return (1);
    else if(*(int *)data1==*(int *)data2)
  5. Thread: Strcpy woes!!!

    by sakura
    Replies
    2
    Views
    729

    Oh! Thank you so much!

    Oh! Thank you so much!
  6. Thread: Strcpy woes!!!

    by sakura
    Replies
    2
    Views
    729

    Strcpy woes!!!

    Okay in the following code


    #include<stdio.h>
    #include<string.h>
    #include<stdlib.h>


    struct mystruct
    {
  7. Replies
    1
    Views
    718

    Default Arguments in C

    #include <stdio.h>


    void func(int a, int b=2)
    {
    printf("%d",a+b);
    }


    int main()
  8. Replies
    6
    Views
    1,339

    Okay! I got it! :)

    Okay! I got it! :)
  9. Replies
    6
    Views
    1,339

    So how do I pass it by reference?

    So how do I pass it by reference?
  10. Replies
    6
    Views
    1,339

    I know why your code doesn't print. But I am...

    I know why your code doesn't print. But I am passing the structure address only. So why wouldn't it print the value? :(
  11. Replies
    6
    Views
    1,339

    Initializing structure

    I have this code which does not print "3" as it is supposed to


    #include<stdio.h>
    #include<stdlib.h>


    typedef struct Node
    {
    int i;
  12. Replies
    16
    Views
    8,369

    Hi guys! Since I did not really get the...

    Hi guys!
    Since I did not really get the solution, I will explain my problem with this example.

    I have my structure definition in a header like this :



    //MystructInt.h
    struct my_struct
    {
  13. Replies
    16
    Views
    8,369

    Hide Structure Definition

    Hi folks,
    Say I want to have a structure


    //mystruct.h
    typedef My_Struct
    {
    int i;
    }my_struct,*my_struct_ptr;
  14. Replies
    3
    Views
    1,227

    oh..so careless of me! Thanks guys! :)

    oh..so careless of me! Thanks guys! :)
  15. Replies
    3
    Views
    1,227

    Typedefing function pointers

    int func(int a,int b);
    {
    return(a+b);
    }


    typedef int (*AddFp)(int,int);


    int main()
  16. Replies
    2
    Views
    1,010

    Thanks for the help! :) :)

    Thanks for the help! :) :)
  17. Replies
    2
    Views
    1,010

    Dereferencing Structures

    typedef struct abc
    {
    int y;
    char *b;
    }abc, *abcptr;
    abc x={2,"sdgare"};
    void *a;


    void function(void *data)
  18. Replies
    6
    Views
    1,371

    Yay!!!! Thank you so much! :)

    Yay!!!! Thank you so much! :)
  19. Replies
    6
    Views
    1,371

    Comparing Float Variables

    int main()
    {
    float a=3.45;
    if(a==3.45)
    printf("1");
    return 0;
    }

    Can someone please tell me why the above program does not print 1?
  20. Replies
    3
    Views
    18,034

    Passing void pointer by reference

    Hi,
    In the following code, I am passing a void pointer by reference assigning a value to it. But the value is not reflected in the main program.


    #include<stdio.h>


    void function(void *p)
    {...
  21. Replies
    5
    Views
    1,536

    Yup. My bad! :)

    Yup. My bad! :)
  22. Replies
    5
    Views
    1,536

    Thanks for the tip!

    Thanks for the tip!
  23. Replies
    5
    Views
    1,536

    Yes. I'm sorry. I did include the typedef in my...

    Yes. I'm sorry. I did include the typedef in my original code. It is not working. Please help me out here!!!
  24. Replies
    5
    Views
    1,536

    Function pointers in structure

    Hi,
    I have a func pointer in a structure like this-


    struct mystruct
    {
    int (*fp)(int,int);
    }mystruct;
Results 1 to 24 of 24