User Profile

Collapse

Profile Sidebar

Collapse
ahumam0
ahumam0
Last Activity: Nov 27 '11, 11:31 PM
Joined: Apr 19 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ahumam0
    replied to using (char*) in switch statment
    in C
    Do you mean that I assign each value of the (node_kind) field to an integer value and then compare using it or what !!?...
    See more | Go to post

    Leave a comment:


  • ahumam0
    started a topic using (char*) in switch statment
    in C

    using (char*) in switch statment

    Hello everybody.
    I am new in C programming language and have an (if satament) and need to transfer it into switch statment.
    My problem is that I have a field named (node_kind) of char* type and I compare it's content in the if statment using (strcmp) but I don't know how to do that in the switch statment.
    Would you plz tell me how ?
    Here is a short quote of my program

    Code:
    if (strcmp(node->node_kind, "VAR_TOKEN_e")
    ...
    See more | Go to post

  • ahumam0
    started a topic duplicate inheritance on methods with parameters

    duplicate inheritance on methods with parameters

    Hello
    Would you please tell me how can I do the following

    Abstract class A
    {
    public abstract void function( type a1 , type a2 )
    }

    class B: A
    {
    public override void function(type a1 , type a2)
    { }

    }
    Class C: B
    {
    public override void function(type a1, typea2(
    { }
    }


    Note: The problem is that class...
    See more | Go to post
No activity results to display
Show More
Working...