CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: deathmetal

Search: Search took 0.02 seconds.

  1. Replies
    4
    Views
    993

    Re: Error returning object from function

    I get compile time errors.
  2. Replies
    4
    Views
    993

    Error returning object from function

    class Main{
    class B b_obj;
    C c_obj=b_obj.test("some",89); // I cannot get this done.!

    }
    Below are .h files:

    class B{
    public:
  3. Replies
    5
    Views
    6,511

    Re: Error passing object reference

    Sorry didn't understand. Got lost in reference, bind. :(
    I am noob in C++/C/pointer/reference world.
  4. Replies
    5
    Views
    6,511

    Re: Error passing object reference

    Hi laserlight,
    No, map doesn't need to be changed, I shall change it to const.
    Can you please help me understand why //object.test(object.ret_poly()); fails? :(
  5. Replies
    5
    Views
    6,511

    Error passing object reference

    #include <Data.h>
    int main(int arg_count, char** argv)
    {
    if(arg_count!=3){
    cerr<<"Files misisng\n";
    exit(1);
    }

    Data object;
    object.read_ref(argv[1]); //
  6. Replies
    2
    Views
    47,759

    Re: understanding istringstream in c++

    Thank you for such a great explanation and helpful URLs.
  7. Replies
    2
    Views
    47,759

    understanding istringstream in c++

    Hi,
    I am new to c++ and in process fo understading and learning string class.

    I am working on istringstream


    std::istringstream iss;
    std::string value="32 40 50 80 902";

    ...
  8. Replies
    2
    Views
    1,483

    Re: Object Composition

    Apologies for the inconvenience caused.



    Thank you for the help.
    I have now added default constructor.
  9. Replies
    2
    Views
    1,483

    Object Composition

    Hi I am learning C++, and trying for object composition.

    I have 2 classes: Point and Creature.
    Point->int x and int y
    Creature:-> Point location and string name

    Below is my Point class header
  10. Replies
    4
    Views
    8,122

    Re: understanding pointers

    Ohh.
    Thank you once again.
  11. Replies
    4
    Views
    8,122

    Re: understanding pointers

    @PM2kaud- Thank you for your reply.
    So basically with string, the base address is passed and
    cout prints until it finds '\0'

    Please correct me, if I am wrong.
  12. Replies
    4
    Views
    8,122

    understanding pointers

    Hi,
    I am new to pointer world. I have started programming in c++ and have basic knowledge in c.


    char y[]="helloo";
    char *p=y;
    cout<< p[1];
    This prints 'e'

    if I print:
Results 1 to 12 of 12





Click Here to Expand Forum to Full Width

Featured