User Profile

Collapse

Profile Sidebar

Collapse
Prashanth Kumar B R
Prashanth Kumar B R
Last Activity: Sep 15 '09, 05:33 AM
Joined: Jun 20 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Is there any limit on the number of conditions to be added in an if stmt

    Hi,

    I have situation in C++ where in I'll have to add around 20-25 conditions <compare a variable against a number> to an if statement.
    Is there any limit on the number of expressions/conditions to be added to an if statement.

    +++++++++++++++ +++++++++++++++ +++++++++++++++ +++++++++++
    sample code.
    +++++++++++++++ +++++++++++++++ +++++++++++++++ +++++++++++

    x = 10;

    if...
    See more | Go to post

  • Prashanth Kumar B R
    started a topic Error C2143 and C2059
    in C

    Error C2143 and C2059

    Hello,

    I have the below typedef statements in one of my header file.

    //
    // Type Definitions
    //
    typedef unsigned long DWORD;
    typedef unsigned int UINT;
    typedef unsigned short WORD;
    typedef unsigned char BYTE;
    typedef unsigned char UNCHAR;
    typedef int BOOL;
    typedef unsigned int UINT32;
    typedef unsigned char UINT8;
    typedef unsigned short...
    See more | Go to post

  • Prashanth Kumar B R
    started a topic Initialization list
    in C

    Initialization list

    My companies C++ coding standard states that "Member initialization list should be used instead of assignment". I have a datamember that has to be initialized through a function call. Can I have function calls in initialization list.
    See more | Go to post

  • Prashanth Kumar B R
    replied to Accessing derived class data members
    in C
    Is there any way by which i can access the Element of the derived class from *Ptr?...
    See more | Go to post

    Leave a comment:


  • Prashanth Kumar B R
    started a topic Accessing derived class data members
    in C

    Accessing derived class data members

    How can i access a public data member of a derived class with a pointer to the base class.

    class Base
    {
    public:
    Base(){};
    virtual ~Base(){};
    virtual bool decode(AOC_Stri ng element_text) ;
    }
    class Derived: pubilc Base
    {
    pubilc:
    int ele;
    bool decode(AOC_Stri ng element_text)
    {
    }
    }

    Base *Ptr = (Base *)new(Derived);...
    See more | Go to post
No activity results to display
Show More
Working...