Search:

Type: Posts; User: dickyDick

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,686

    I am using Visual C++ version 6. From their...

    I am using Visual C++ version 6. From their documentation fstream supports only up to 2GB. I wonder if there is any way to get around this problem.
  2. Replies
    3
    Views
    1,686

    Maximum File Size

    I wonder if standard fstream supports file size over 4GB?
  3. Replies
    7
    Views
    1,120

    Oh! I understood your first message now. Thanx...

    Oh! I understood your first message now. Thanx again.
  4. Replies
    7
    Views
    1,120

    Sorry for not being clear. What I meant was, if I...

    Sorry for not being clear. What I meant was, if I instantiated 2 objects of MyMainClass, each object would have its separate "dumbClass" pointer. But I wish them to share the same pointer (that was...
  5. Replies
    7
    Views
    1,120

    Oh thanx Transformer for reminding me about...

    Oh thanx Transformer for reminding me about static nuisance.

    I intend MyMainClass to have only a single (global) pointer to an instance of DummyClass. How do I code this?
  6. Replies
    7
    Views
    1,120

    There are some typos. See my correction below: ...

    There are some typos. See my correction below:



    // File: DummyClass.h
    class DummyClass {
    public:
    void doNothing() {
    }
    };
  7. Replies
    7
    Views
    1,120

    Static Member

    I have the following 2 files:

    // File: DummyClass.h
    class DummyClass {
    public:
    void doNothing() {
    }
    };

    // File: MyMain.cpp
  8. I used to combine them even for non-template...

    I used to combine them even for non-template classes. A while ago, as I developed my program I encountered some problem as I included a header file (non-template class) in more than 1 cpp file....
  9. Separating Header and Method Implementation

    I used to put my methods implementation together with class definition in the header file. I would like to separate them. The following are my new code:



    // File: MyClass.h
    #ifndef...
  10. Thread: Template

    by dickyDick
    Replies
    13
    Views
    1,308

    This one works! Moreover it is much compact....

    This one works! Moreover it is much compact. Thanx legend
  11. Thread: Template

    by dickyDick
    Replies
    13
    Views
    1,308

    Thanx

    Thanx
  12. Thread: Template

    by dickyDick
    Replies
    13
    Views
    1,308

    I originally coded that way, but I was thinking a...

    I originally coded that way, but I was thinking a user may erroneously instantiate


    DummyClass<TestStruct<double>, int> myClas;

    which of course results in error(s). So to keep error to the...
  13. Thread: Template

    by dickyDick
    Replies
    13
    Views
    1,308

    I use visual c++ version 6. There are many...

    I use visual c++ version 6. There are many errors, but the first 2 are:
    error C2954: template definitions cannot nest
    error C2951: template declarations are only permitted at global or namespace...
  14. Thread: Template

    by dickyDick
    Replies
    13
    Views
    1,308

    your suggestion does not work.

    your suggestion does not work.
  15. Thread: Template

    by dickyDick
    Replies
    13
    Views
    1,308

    Template

    Hi all,

    I am having trouble with class definition with template. The following is a simple example:


    template <class DataType>
    struct TestStruct {
    DataType key;
    };
Results 1 to 15 of 15