Search:

Type: Posts; User: kromozom

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,511

    Thanks buddy.

    Thanks buddy.
  2. Replies
    2
    Views
    1,511

    What does this mean?

    enum {HASH_TABLE_SIZE = 101};
    typedef ChainNode * HashTableType[HASH_TABLE_SIZE];


    I could not get the point, can someone explain what 2nd line of the code does to me?

    Best wishes
  3. Replies
    5
    Views
    2,713

    Bingoo!

    I got it now, it works.

    First declaration worked. I didn't include the header file, just declaration and a pointer did everything working well.

    Thank you Darryl.
  4. Replies
    5
    Views
    2,713

    Hi Darryl, I got what you mean and it is a...

    Hi Darryl,

    I got what you mean and it is a brilliant idea.

    However, I cannot add the #include "realBST.h" into "realTreeNode.h" and therefore, I cannot even create a pointer to BinarySearchTree...
  5. Replies
    5
    Views
    2,713

    including headers inside headers

    Hi all,

    I have a header file "realTreeNode.h" and starts like this;


    #ifndef REALTREENODE_H
    #define REALTREENODE_H

    #include "keyedItem.h"
  6. It does compile without any error when you do not...

    It does compile without any error when you do not create an instance of a class. However, when you try to create an object, it gives error such as;

    d:\directory\driver.cpp(10): error C2065:...
  7. Can not reach the classes and create instances of them

    Hello everybody,

    I have some files both .cpp and .h that are coded in C++ by someone else before(only 5 files that creates a Binary Search Tree). I would like to use it in my project.

    First of...
  8. Replies
    2
    Views
    1,021

    Simple Error, but couldn't find.

    Hi, I have a simple code.


    #include "stdafx.h"
    #include <iostream>
    using namespace std;

    #include <cstdlib>
    #include <ctime>
    typedef int DataType;
  9. Replies
    10
    Views
    1,684

    misplaced there is #include < new > however,...

    misplaced there is
    #include < new > however, while I'm copying it here the site editor seems that as a HTML tag as far as I see, thanks.

    I thought that may be you can help me on some crucial...
  10. Replies
    10
    Views
    1,684

    I got the example but I couldn't apply it to my...

    I got the example but I couldn't apply it to my example :confused:
  11. Replies
    10
    Views
    1,684

    Then Mr.Miill you mean, should I define all the...

    Then Mr.Miill you mean, should I define all the functions in StackA.h and delete the StackA.cpp file?

    Do you have any example for me to see how these templates work? (I don't know templates much)...
  12. Replies
    10
    Views
    1,684

    But if I don't use StackA.cpp, how can the...

    But if I don't use StackA.cpp, how can the compiler understand what is inside of my functions? The StackA.h only holds function prototypes.

    Thanks,
  13. Replies
    10
    Views
    1,684

    What could be wrong about this template?

    StackA.h

    #ifndef STACKA_H
    #define STACKA_H
    // *********************************************************
    // Header file StackA.h for the ADT stack.
    // Array-based implementation.
    //...
  14. Replies
    10
    Views
    1,310

    Yes Salem, I did it like that(as you said) but...

    Yes Salem, I did it like that(as you said) but compiler gave me an error as I mentioned above. Nonetheless, its executable works from command prompt without any error.

    Thank you...
  15. Replies
    10
    Views
    1,310

    This can be because of The Brain's explanation...

    This can be because of The Brain's explanation but when I do the typedef of ArrayType as a pointer to int, compiler gives me many errors and things get confusing.

    I think I need to study this...
  16. Replies
    10
    Views
    1,310

    Thank you Salem, I got it. It compiles...

    Thank you Salem, I got it.

    It compiles successful but in run-time it gives an error like,

    Error 1 Error result 1 returned from 'C:\Program Files\Microsoft Visual Studio...
  17. Replies
    10
    Views
    1,310

    When I do like what Salem said, it gives an error...

    When I do like what Salem said, it gives an error like

    Error 1 error C2664: 'findSum' : cannot convert parameter 1 from 'ArrayType [7]' to 'int []' c:\Documents and Settings\Sarp\My...
  18. Replies
    10
    Views
    1,310

    Couldn't catch the error?

    #include <iostream>

    const int MIN_ELEMENTS = 5;
    typedef int ArrayType[MIN_ELEMENTS];
    typedef int ElementType;

    bool findSum( ArrayType myArray[], int n )
    {

    ElementType firstFiveSum = 0;
Results 1 to 18 of 18