Search:

Type: Posts; User: iunah

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,348

    yeah i get it.thanks!

    yeah i get it.thanks!
  2. Replies
    4
    Views
    1,710

    i get it. thanks. :)

    i get it. thanks. :)
  3. Replies
    2
    Views
    1,348

    bst in postorder to file algorithm?

    i need to create a function (inside bst.h) that will save the contents of the bst (before deleting the whole bst when the program would be terminating) in a file, containing the numbers in the bst in...
  4. Replies
    4
    Views
    1,710

    sorry for the late reply.. are you pertaining...

    sorry for the late reply..

    are you pertaining to this part?



    else{
    if(ptr == ptr->parent->left){
    ptr->parent->left = ptr1;
    //should I insert something here...
  5. Replies
    4
    Views
    1,710

    BST node deletion help!

    this is my code snippet:



    void deletenodebst(bst **rootptr,bst *node) {
    bst *ptr, *ptr1;

    if(node->left==NULL || node->right==NULL){
    ptr = node;
    }else ptr = successorbst(node);
  6. Replies
    18
    Views
    2,175

    my apologies.. what happens is that even...

    my apologies..

    what happens is that even though a matching name is already on the list, it would still be appended..
  7. Replies
    18
    Views
    2,175

    ok.. my bad.. thanks for correcting me but how...

    ok.. my bad.. thanks for correcting me

    but how about the problem?
  8. Replies
    18
    Views
    2,175

    okay.. for example: FIle contains: John Matt...

    okay.. for example:

    FIle contains:
    John
    Matt
    Philip

    then the contents of the array would be that 3 names.. then the user has an option to add a name:

    Add a name: jOhn
  9. Replies
    18
    Views
    2,175

    i tried passing the original values but still,...

    i tried passing the original values but still, nothing happened.. where do you think is the problem?
  10. Replies
    18
    Views
    2,175

    it was instructed that index 0 of the array will...

    it was instructed that index 0 of the array will not be used..

    EDIT: my apologies, that was a typo
    else is not included..
  11. Replies
    18
    Views
    2,175

    i'm saying that if ever temp and temp2 is 0 (that...

    i'm saying that if ever temp and temp2 is 0 (that is, if they are the same), comp's value will change and that would mean the user cannot input the name he wants because it is already existing in the...
  12. Replies
    18
    Views
    2,175

    strings + file help!

    my goal is to retrieve names from a file, save it to an array and save its changes as to program terminates. also, the user cannot add a name that already exists, despite of its case. can someone...
  13. Replies
    9
    Views
    1,357

    at last, I found a way to dump that line on...

    at last, I found a way to dump that line on scanf.. ( i used a separate function just for that dumping)

    thanks for all the help! :)

    until then I sleep..
  14. Replies
    9
    Views
    1,357

    yes, it does have a scanf before that...

    yes, it does have a scanf before that case-statement.. but it only asks for an int "choice" on the "menu".. how can I use fgets + sscanf for that? or rather, how can I clean up the whitespace that...
  15. Replies
    9
    Views
    1,357

    this is a larger block of my code int pos;...

    this is a larger block of my code



    int pos;
    char name[30];

    printf("Enter name: ");
    fgets(name,30,stdin); //sorry.. maxChar is #define-d as 30 in my code.. :)
    printf("Enter position: ");
  16. Replies
    9
    Views
    1,357

    thanks for the FAQ. :) i've seen some...

    thanks for the FAQ. :)

    i've seen some "solutions" around:

    -i've read others saying about an fpurge(stdin)..
    -using fgets then sscanf..

    which do your recommend? or can you recommend other...
  17. Replies
    9
    Views
    1,357

    simple Q on whitespace..

    char name[30];

    printf("Enter name: ");
    fflush(stdin);
    fgets(name,30,stdin);



    what I want is to save a string (with whitespaces) to "name" because "name"s from the user will be stored in...
  18. passing array of pointers from one function to another

    How can I pass an array of pointers? Please help... here's a piece of my code...


    typedef struct node1 {
    int cell;
    struct node *prev;
    struct node *next;
    } box;

    typedef struct node2 {
  19. Replies
    13
    Views
    3,227

    Yes.. and it worked perfectly.. Well it's just...

    Yes.. and it worked perfectly..

    Well it's just a part of a HUGE code I'm currently working on..

    Again, thanks for all the help..
  20. Replies
    13
    Views
    3,227

    I think I got it.. thanks for all the help ...

    I think I got it.. thanks for all the help



    typedef struct node2 {
    char name[10];
    struct node *move; //i removed '2' from node
    } person2;
  21. Replies
    13
    Views
    3,227

    but, what I want to do is to traverse person2 on...

    but, what I want to do is to traverse person2 on person...

    what should I do?
  22. Replies
    13
    Views
    3,227

    do I have to typecast one of the sides?

    do I have to typecast one of the sides?
  23. Replies
    13
    Views
    3,227

    thanks, but, can you please discuss more on...

    thanks, but, can you please discuss more on solving this problem? i'm still new to C.. sorry..
  24. Replies
    13
    Views
    3,227

    assignment from incompatible pointer types

    i'm getting this error... i don't know what to do.. please help...



    typedef struct node {
    int age;
    struct node *prev;
    struct node *next;
    } person;
  25. Replies
    6
    Views
    1,848

    Java game.. help!

    Can someone please help me in converting handleEvent() method (which is now deprecated) to processEvent()? I don't know how.. please help..

    I've included the necessary files on the zip folder...
Results 1 to 25 of 27
Page 1 of 2 1 2