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...
Type: Posts; User: Lorin_sz
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...
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...
got it!
thx very much:)
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();
thanks all:)
Hi, I have a question here
#include<iostream>
using namespace std;
class Counted{
public:
Counted():id(count++){ cout << id << endl; }
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...