User Profile

Collapse

Profile Sidebar

Collapse
avinash jain
avinash jain
Last Activity: Oct 4 '07, 07:39 AM
Joined: Aug 23 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • avinash jain
    started a topic How to reduce to multiple if / else statements..
    in C

    How to reduce to multiple if / else statements..

    Could any one guide me how do we reduce nested if / else statements..
    See more | Go to post

  • how to create a core dump file in G++ compiller

    I got a segmentation fault..
    I came to know that the problem could be easliy solved be the core dump files.
    could any tell how to create a core dump file and how to read a core dump file.
    I am using g++ compliier..
    See more | Go to post

  • avinash jain
    started a topic Regarding returning of function
    in C

    Regarding returning of function

    hi guys .. could any one tell which one is bette..

    code1:


    result add ( int a , int b )
    {
    return ( a+b) ;
    }


    code 2:
    void add ( int a , int b , int result)
    {
    result = a+b ;
    return result;
    }

    which one is better whether the code1 or code 2

    Dont consider about the temp variable.. what I need whether...
    See more | Go to post

  • avinash jain
    replied to Trouble optimizing for-loop
    in C
    why cant you try this code

    for( i= 50 ; i > 0 ; i--- )
    {

    // code
    }

    why I said this would when ever you say in the for loop i = 0 ..Zero flag gets initialised ..
    that also consumes some extra time..

    In turn my suggestion is instead of having a incremental loop use a decremental loop..
    just check whether it works for you or not..
    let me know about...
    See more | Go to post

    Leave a comment:


  • avinash jain
    replied to regarding Inline functions
    in C
    compliation time & Inline functions

    I would like to know how much time its has taken for execution of the program ..

    I am using a g++ complier how to check whether my function is inlined or not..
    See more | Go to post

    Leave a comment:


  • avinash jain
    replied to regarding Inline functions
    in C
    The complier i am using is g++..
    How to check whether my function is Inline or not..
    See more | Go to post

    Leave a comment:


  • avinash jain
    started a topic regarding Inline functions
    in C

    regarding Inline functions

    how would I know whether my function is inlined or not ..
    whether the complier has accepted my requested or not..
    See more | Go to post

  • avinash jain
    replied to avoid If/Else statements
    in C
    #include<iostre am>

    using namespace std;
    class Zaman
    {
    public:
    virtual void Sing()=0;
    };

    class LirilGirl:publi c Zaman
    {
    //virtual keyword is optional here
    /*virtual*/
    public:
    void Sing()
    {
    std::cout<<"La. .lalalala....La aa..Laa..laaa.l aaa";
    }
    };

    class NirmaGirl:publi c...
    See more | Go to post

    Leave a comment:


  • avinash jain
    replied to avoid If/Else statements
    in C
    *************** *************** *************** *************** *************** *************** **Thank you for replying ...
    I have have got a link..
    http://www.parashift.c om/c++-faq-lite/virtual-functions.html. ...
    in the section[20.6]..
    My problem is of the same type .. could please help me without using vectors.or templates.....
    See more | Go to post

    Leave a comment:


  • avinash jain
    replied to avoid If/Else statements
    in C
    avoid If/Else statements using inheritance

    Hi to all
    Could any one tell me how to avoid if/else statements uisng inheritance..
    See more | Go to post

    Leave a comment:


  • avinash jain
    replied to avoid If/Else statements
    in C
    I need an example..so that I could try on my PC..
    I came to know that in C++. It could be avoided by using inheritance...
    I would be grateful to you if you consider my reuest..
    See more | Go to post

    Leave a comment:


  • avinash jain
    started a topic avoid If/Else statements
    in C

    avoid If/Else statements

    Hi
    Could any one help me ... I need to avoid If / else statements in my code. I have searched but I could not any simple solution for that.
    Its said to use vectors.But I ddont want to use those vectors. or templates.
    See more | Go to post
No activity results to display
Show More
Working...