Search:

Type: Posts; User: SpaceCadet

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,149

    http://www.brainbench.com/ is a recognised online...

    http://www.brainbench.com/ is a recognised online facility, recognised by most employers.
  2. Replies
    3
    Views
    1,016

    I suggest you tokenise the char buffer that you...

    I suggest you tokenise the char buffer that you populate from parsing the file into strings that represent words.

    Insert these words into a std::vector container or std::list container (Check...
  3. Passing parameters between templated functions

    I am having trouble getting a template function to recognise that it has been passed a reference by a calling template function. This example code demonstrates the problem.



    template<typename...
  4. Replies
    2
    Views
    1,515

    This does not do what your code does. It does...

    This does not do what your code does. It does meet your requirements.



    int main()
    {
    const int MIN=0;
    const int MAX=25;
    int numbers[MAX];
    int number=MIN;
  5. Thread: Menu Loop

    by SpaceCadet
    Replies
    1
    Views
    1,107

    catch (int index) { ...

    catch (int index)
    {
    cout << "Exception thrown" << endl;
    continue;
    }
  6. Replies
    5
    Views
    1,458

    int calcDeficit(int x, int y) { return...

    int calcDeficit(int x, int y)
    {
    return (x-y);
    }

    int main (void)
    {
    int MUFC_points=25;
    int LFC_points=14;
  7. Yes it does. However, an act of unbelievable...

    Yes it does. However, an act of unbelievable programming is at the root of this.

    Too heavy to explain. Thanks for you help, I think I'm on to it now.
  8. Template Trouble - Brainache Please Help

    I am working on replacing multiple overrides of a function within a legacy code base (all of which are virtual), with a single template signature.

    My template function is as follows:


    ...
  9. Replies
    4
    Views
    2,034

    I will check whether I messed up at first base!...

    I will check whether I messed up at first base! (Specifying a C++ console application)

    Thanks all.
  10. Replies
    4
    Views
    2,034

    Beginner MS Visual C++ User

    I have just downloaded Visual C++ and am trying to write a noddy application. I am well versed in C++ and write for the unix platform.

    I am therefore bemused by the compilation errors MS VC++...
  11. Replies
    7
    Views
    1,279

    I recommend you use a stl container instead of a...

    I recommend you use a stl container instead of a linked list.

    Have you copy constructor call an the assignment operator. Ensure that the assignment operator does not permit a copy of an object to...
  12. Replies
    8
    Views
    1,470

    That is more efficient and preferrable.

    That is more efficient and preferrable.
  13. Replies
    8
    Views
    1,470

    A polite observation regarding the constuctor...

    A polite observation regarding the constuctor implementation...



    secretType::secretType(string name, int age, int weight, double height)
    {
    this->name = name;
    this->age = age;
    ...
  14. Replies
    5
    Views
    1,036

    You can sort an array using the qsort C-style...

    You can sort an array using the qsort C-style algorithm.

    The list container provides sort and splice capabilities if you want to take a more C++ oriented approach.
  15. How about a flush? stream

    How about a flush?



    stream << "Data" << flush;
  16. Replies
    2
    Views
    1,088

    The Node* Next member variable is not initialised...

    The Node* Next member variable is not initialised by the constructor that receives an int argument.

    The GetNext function will therefore return an uninitialised pointer.

    Assigning Current =...
  17. Replies
    10
    Views
    3,588

    A fine suggestion. Unfortunately the legacy...

    A fine suggestion.

    Unfortunately the legacy code must be built using a compiler version recognised and support by it's owners. The version of the Sun C++ compiler, they support does not build the...
  18. Replies
    3
    Views
    3,595

    C++ Refactoring Tools

    Can anyone recommend a C++ refactoring tool that might help sort out a large legacy C++ application running on Solaris?

    By large, I mean several million lines. The tool must be very good, because...
  19. Replies
    3
    Views
    1,907

    make_display_word may exhibit ndefined behaviour...

    make_display_word may exhibit ndefined behaviour because it returns a copy of a local variable. You can deprecate this function by using a string constructor to initialise the display word string.
    ...
  20. Replies
    5
    Views
    1,142

    Agreed that the compiler is free to implement as...

    Agreed that the compiler is free to implement as it chooses.

    I suspect the determination of the object Vtable is achieved via RTTI, but from an application perspective you should not care.

    If...
  21. Replies
    10
    Views
    3,588

    By using a wrapper, clients of that wrapper can...

    By using a wrapper, clients of that wrapper can not use the std::list API directly to manage data held within the Wrapper::std::list mList member variable.

    The ambition of this exercise is to...
  22. Replies
    10
    Views
    3,588

    Bit of background

    I am working on piece of software written by a third party vendor. The third party has completely misunderstood the STL.

    They have written a custom template wrapper object to contain a pointer of...
  23. Replies
    10
    Views
    3,588

    Inheritance from STL container

    Hi,

    I have a problem with 'slicing' when deleting an object allocated on the heap using a base class pointer. The base class is a std:list. Because the std::list does not have a virtual...
Results 1 to 23 of 23