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

Search:

Type: Posts; User: coletek

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    806

    Re: inheritance and constructors

    a_name twice was a typeo - opps..

    Solution to my problem:



    class B : public A {
    public:
    B( char *x ) : A( x ) { }
  2. Replies
    3
    Views
    806

    inheritance and constructors

    Hi,

    Why can't I do the following:



    #include <stdio.h>
    #include <stdlib.h>

    class A {
  3. Replies
    9
    Views
    4,035

    Re: overhead of virtual functions

    Its from a online quiz, which seems to have interesting but (sometimes) crappy/ambiguous questions.
  4. Replies
    9
    Views
    4,035

    Re: overhead of virtual functions

    This link is broken, can you fix please.
  5. Replies
    7
    Views
    1,271

    Re: compling issues - const issue

    yep
  6. Replies
    9
    Views
    4,035

    overhead of virtual functions

    Which of the following options describe the expected overhead for a class that has 5 virtual functions?

    A. Every object of the class holds the address of a link list object that holds the...
  7. Replies
    7
    Views
    1,271

    Re: compling issues - const issue

    Read the end of my first post ie.


    For more info on what version:


    coletek@spamisgood:~> g++ -v
    Using built-in specs.
    Target: powerpc-linux-gnu
    Configured with: ../src/configure -v...
  8. Replies
    2
    Views
    5,616

    custom manipulators

    Which of the following are valid C++ declarations for a manipulator named MyEndl for cout?

    A. ostream& MyEndl(ostream&);
    B. ostream& manipulator MyEndl(ostream&);
    C. ostream& manipulator...
  9. modeling relationship for protected, or private inheritance

    Protected, or private, inheritance, as opposed to public inheritance, models which type of relationship in C++?

    A. Is-implemented-in-terms-of
    B. Has-a
    C. Was-a
    D. Can-only-have-one-of...
  10. Replies
    5
    Views
    1,912

    Re: explicitly specializing a templete function

    Well that is the way its defined, according to http://www.codersource.net/cpp_class_templates_specialization.html
  11. Replies
    5
    Views
    1,912

    Re: explicitly specializing a templete function

    I see, I didn't realise there was such a thing as template specialisation. Now that I've read it the answer is C.
  12. Replies
    20
    Views
    2,822

    newmat vs boost

    Whats peoples thoughts on newmat vs boost for matrix manipulation.

    I've used newmat before and find it very good. I've also heard boost is good but have never used it as yet. Can boost do...
  13. Replies
    5
    Views
    1,912

    explicitly specializing a templete function

    A C++ developer wants to explicitly specialize the template function below for the char * type:

    template <class T> void fn(T a){...}

    Which of the following methods can the developer use to...
  14. Replies
    11
    Views
    3,616

    Re: exception in the destructor

    The questions are rather good, in terms of asking particular things one overlooks, doesn't quite know, or doesn't bother to learn. But I must say some of the wording is dumb/ambiguous - but its good...
  15. Replies
    11
    Views
    3,616

    Re: exception in the destructor

    http://ikmnet.com
  16. Replies
    11
    Views
    3,616

    Re: exception in the destructor

    They are from a online quiz I'm working through to help me understand the finer details of c++.
  17. Replies
    11
    Views
    3,616

    exception in the destructor

    Which of the following reasons describe why a destructor cannot throw an exception in C++?

    A. The C++ language does not permit it; a throw statement in a destructor will be caught as an error by...
  18. Replies
    4
    Views
    1,421

    exception handling

    Which of the following statements describe correct methods of handling C++ exceptions?

    A. In a hierarchy of exception classes, the order of handling exceptions can be from the most specific class...
  19. Replies
    7
    Views
    1,271

    Re: compling issues - const issue

    Fixed, just add a default empty constructor.
  20. Replies
    7
    Views
    1,271

    compling issues - const issue

    #include <iostream>

    class TestPrint
    {
    public:

    void Print()
    {
    std::cout << "TestPrint" << std::endl;
    }
  21. Replies
    2
    Views
    3,731

    Re: RTTI for distribution

    I totally realise that. I thought my response clearly stated that. My response to the question discuses RTTI in general but also when used for a different platforms (as the question asks). Can you...
  22. Replies
    2
    Views
    3,731

    RTTI for distribution

    Which of the following statements provide a valid reason not to use RTTI for distributed (i.e. networked between different platforms) applications in C++?

    A. RTTI is too slow.
    B. RTTI uses too...
  23. Replies
    14
    Views
    2,218

    Re: unary operator overloading and classes

    No worries, understood. Public posting doesn't bother me... Thx for ya help but.
  24. Replies
    14
    Views
    2,218

    Re: unary operator overloading and classes

    Sorry about that. New to both forums and felt they may have different users, at different times. So felt a dup would increase the speed of an answer... But I know see both forums are rather good and...
  25. Replies
    14
    Views
    2,218

    Re: unary operator overloading and classes

    Cool. Any reason why operator function for a class member must be nonstatic? Why can't they be static?
Results 1 to 25 of 30
Page 1 of 2 1 2





Click Here to Expand Forum to Full Width

Featured