Thread: help me in this!!!!

  1. #16
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by chintugavali View Post
    i want to return sec1 from function
    Do you want something like this?
    Code:
    static Section formSection(Section section1, Section section2);
    .
    .
    .
    sec1 = formSection(x,y);
    That would put the result of formSection into the variable sec1.

  2. #17
    Registered User
    Join Date
    Dec 2007
    Posts
    78
    ya i understood , i have to return section itself

  3. #18
    Registered User
    Join Date
    Dec 2007
    Posts
    78
    static Section formSection(Section section1, Section section2);
    .
    .
    .
    sec1 = formSection(x,y);


    ya i want exactly waht u said!!!

  4. #19
    Registered User
    Join Date
    Dec 2007
    Posts
    78
    can you tell me what would b its syntax while defining it? i am beginner so please have patience!!

  5. #20
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    That looks right to me.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed