will you plz expalin me in code i will be thank ful.
i have written so far is as follows
template<class T>
int BST<T>::getLeafCount(){
return getLeafCount(root);
}
template<class T>
int BST<T>::getLeafCount(BSTNode<T> *rt){
int count= 0;
if(rt==0){
return 0;
}else if(rt->left==0 &&...
hello everybody
I was just lookin at binary search tree some of the member functions like insert,remove, search etc. and i started thinking is there any way i can get nodecount,leafcount and tree height. Plz share some ideas about them.
akash
First of all i wanna thank you for takeing yor time. Problem is like this.
Assumptions:
1 In real life service time for a customer may vary but we are considering same for simplicity.
2 the unit time of the simulation is equal to the service time for one customer.
3 Teller B works only if teller...
First of all i wanna thank you for takeing yor time. Problem is like this.
Assumptions:
1 In real life service time for a customer may vary but we are considering same for simplicity.
2 the unit time of the simulation is equal to the service time for one customer.
3 Teller B works only if teller...
hello
Fellows i am trying to do a program about bank simulation need little help can't think of any thing. Well we have a bank with two tellers A and B. but teller B only work when teller A is busy.PLz help me how can i enqueue and dequeue customers for a unit time period.
akash
hi
little qur how can i dump the contents of array into a file. plz look at this
template<class T>
bool MyStorage<T>::readFromFile (char *fileName)
{
fstream fileopen("fileName",ios::in);
char arrayPtr[20];
while(!fileopen.eof())
{
fileopen.getline(arrayPtr,20)...
i am working with two files integerdata.txt and doubledata.txt.i am haveing trouble reading the data and storing it in array and then dumping it again in a file named 'filename'. i am really thankful to you for helping me out.
template <class T>
class MyStorage{
private:
T...
thank you mike
will you plz look at this. i am working with two files integerdata.txt and doubledata.txt.i am haveing trouble reading the data and storing it in array and then dumping it again in a file named 'filename'. i am really thankful to you for helping me out.
template <class T>
class...
hello
i have to read a file and stor the data into the array. someone plz help me. i know how to read a file but don't know what should i do to store it in an array.Any help will be greatful.
akash
but i am having problem how can i code for this member function
bool readfromfile(char *filename)
// code.
//we are to read data of type t from the file named 'filename'and store the data into the array.returns true if reading was successful,false otherwise.
here is actual assignment
template...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.