Search:

Type: Posts; User: freakyboard

Search: Search took 0.01 seconds.

  1. Replies
    20
    Views
    2,119

    LoL History repeats itself. Maybe that's a dejavu...

    LoL History repeats itself. Maybe that's a dejavu for you, only for you...
  2. Replies
    20
    Views
    2,119

    Data members of the classes have to be private....

    Data members of the classes have to be private. I'm trying to learn about friend functions.
  3. Replies
    20
    Views
    2,119

    //------------------------------------------------...

    //---------------------------------------------------------------------------
    #include <vcl.h>
    #include<iostream>
    #include<fstream>
    #include<stdlib.h>
    #include<conio.h>
    using namespace std;...
  4. Replies
    20
    Views
    2,119

    If you are interested in, I can post the whole...

    If you are interested in, I can post the whole code. It's really long.
  5. Replies
    20
    Views
    2,119

    There is an answer coz it's an exam question. I...

    There is an answer coz it's an exam question. I made the code smaller for you.
    Somebody told me about friend functions. What about friend functions?
  6. Replies
    20
    Views
    2,119

    We are not allowed to use those functions in...

    We are not allowed to use those functions in main().
  7. Replies
    20
    Views
    2,119

    We can't use those functions in main() so how can...

    We can't use those functions in main() so how can we call them?
  8. Replies
    20
    Views
    2,119

    That's easy for me. I had created more and more...

    That's easy for me. I had created more and more like those functions GetA, SetA... They didn't work.

    int& x::GetA(){return a;}
    void x::SetA(){cout<<"Enter the value of a: "; cin>>a; }
    OR ...
  9. Replies
    20
    Views
    2,119

    Elysia, can you help me more? Coz I typed k.a...

    Elysia, can you help me more?
    Coz I typed k.a not k.a() so we can't call it.
  10. Replies
    20
    Views
    2,119

    Inheritance

    class x{int a;};
    class y:public x{};
    main(){y k; k.a=3; }

    How can I access "k.a"?
    PS: You can't change or omit any part of the code.
    a have to be private.
    Member access specifier...
Results 1 to 10 of 10