Search:

Type: Posts; User: Lorin_sz

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,122

    problem in creating a tree

    Hi, I encountered some problems in creating a tree and using preorder algorithm to travel it.




    // Create a binary search tree

    #include<iostream>
    struct TreeNode;
    typedef struct TreeNode...
  2. Replies
    1
    Views
    1,060

    problem in creating a tree

    Hi, I encountered some problems in creating a tree and using preorder algorithm to travel it.



    // Create a binary search tree

    #include<iostream>
    struct TreeNode;
    typedef struct TreeNode...
  3. Replies
    9
    Views
    1,013

    got it! thx very much:)

    got it!
    thx very much:)
  4. Replies
    9
    Views
    1,013

    I don't understand...

    a simple example destructor,i really donot understand the output


    #include<iostream>
    using namespace std;

    class T {
    public:
    T( double d ) : pd( new double( d ) ) { };
    ~T();
  5. Replies
    4
    Views
    922

    thanks all:)

    thanks all:)
  6. Replies
    4
    Views
    922

    Compile ok,Excute error,why???

    Hi, I have a question here



    #include<iostream>
    using namespace std;

    class Counted{
    public:
    Counted():id(count++){ cout << id << endl; }
  7. Replies
    5
    Views
    1,042

    Help!A simple question...

    hi,i am just a novice to cpp programming.
    here is a simple program to store 25 floating-numbers using a vector and then output all the elements in the vector.
    when i excute it , some problem arise...
Results 1 to 7 of 7