Search:

Type: Posts; User: programmerc

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,275

    Bash script in c

    Hi! I'm trying to call another c program via shell script in c, but it just pop-up and close again.. here's my code:


    char* command = "";
    char temp[MAX_LENGTH] = "";
    ...
  2. Replies
    5
    Views
    1,580

    Thanks, @zyxwvuts for the answer. It's not...

    Thanks, @zyxwvuts for the answer.
    It's not exactly want I but, your answer help to solve my problem. Thanks :)
  3. Replies
    5
    Views
    1,580

    gnome-terminal

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


    int main(int argc, char const *argv[]) {

    system("gnome-terminal");

    printf("Hello World!");
  4. Replies
    2
    Views
    1,591

    Generic Variable

    Hi! I'm trying to implementing shunting yard algorithm and I'm done converting it to postfix. I have some problem on evaluating it.

    Here's my code:


    Tree* evaluateExpr(Tree** right, Tree**...
  5. Replies
    8
    Views
    849

    Okay, thanks..

    Okay, thanks..
  6. Replies
    8
    Views
    849

    Yes.

    Yes.
  7. Replies
    8
    Views
    849

    Can I evaluate it with this expression? (1 +...

    Can I evaluate it with this expression?


    (1 + 2) > 3 && 1 < 3
  8. Replies
    8
    Views
    849

    Is this want you mean @laserlight? The accepted...

    Is this want you mean @laserlight? The accepted answer in the link..
    parsing - Shunting yard algorithm for immediate evaluation - Stack Overflow
  9. Replies
    8
    Views
    849

    Shunting-yard algorithm

    Can I use Shunting-yard algorithm to evaluate Expressions (arithmetic, relational, and logical) ?
  10. Replies
    2
    Views
    570

    Haha I'm sorry I forgot to use malloc. Foo*...

    Haha I'm sorry I forgot to use malloc.


    Foo* foo = (Foo*)malloc(sizeof(Foo));
  11. Replies
    2
    Views
    570

    Function pointer

    Hi! I want to have a function pointer inside a typedef struct but I get a segmentation fault when I run my code. Here's my code:


    #include <stdio.h>

    typedef struct Foo {
    void (*bar)(int);...
  12. Replies
    2
    Views
    1,265

    Thanks @laserlight. Problem solved :)

    Thanks @laserlight. Problem solved :)
  13. Replies
    2
    Views
    1,265

    something not a structure or union

    Hi! I'm getting some error on my function below:


    Tree** getSibling(Tree** root, char* token) {
    return !strcmp(token, root -> token) ? &(root -> child) : getSibling(&(root -> sibling),...
  14. Replies
    7
    Views
    2,618

    I come up with this code: #include...

    I come up with this code:


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


    typedef struct Tree {
    char* token;
  15. Replies
    7
    Views
    2,618

    This is a General tree, here's my reference...

    This is a General tree, here's my reference http://www.rsbauer.com/class/dsa2/slides/General%20Trees.pdf
  16. Replies
    7
    Views
    2,618

    I think I have to specify the parent node.. I...

    I think I have to specify the parent node..
    I want a pre-order traversal.
  17. Replies
    7
    Views
    2,618

    Tree Traversal

    Hi Everyone! I'm have a General tree here and I have a problem on traversing it. Here's my code:


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


    typedef struct Tree {
    char* token;
    int...
  18. Replies
    8
    Views
    2,067

    Okay, Thanks haha :D

    Okay, Thanks haha :D
  19. Replies
    8
    Views
    2,067

    Can you tell me the code?

    Can you tell me the code?
  20. Replies
    8
    Views
    2,067

    typedef struct Tree { char* info; ...

    typedef struct Tree {
    char* info;
    struct Tree* children[MAX_LENGTH];
    } Tree;

    Is this correct??
  21. Replies
    8
    Views
    2,067

    Is there any way to make it possible? I want to...

    Is there any way to make it possible? I want to make a node to point to N-nodes.
  22. Replies
    8
    Views
    2,067

    Multiple reference

    Hi Everyone!Can I a have one pointer with two reference in it. Here's what I've got.


    char* c;
    char x='x' , y='y';
    c = &x;
    c = &y;

    -- or --
  23. Replies
    5
    Views
    848

    No, there is a separate input for octal and...

    No, there is a separate input for octal and binary..
  24. Replies
    5
    Views
    848

    I'm sorry I don't understand you..

    I'm sorry I don't understand you..
  25. Replies
    5
    Views
    848

    Parameters??

    hi everyone can you help me how can i upgrade my program I want to input a octal and binary number and convert them in base 2, 8, 10, 16..

    how can I write the scanf with the right parameter in...
Results 1 to 25 of 61
Page 1 of 3 1 2 3