Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by akashvij

  1. akashvij

    BST leafcount()?

    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 &&...
  2. akashvij

    BST leafcount()?

    fellow plz give me some ideas how to get leafcount in binary search tree. i will be greatful.
  3. akashvij

    binary search tree

    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
  4. akashvij

    ? create a project that has two source code files and a header file

    just include the header file # include &quot;filename.h&quot; you are suppose to build not compile if you are using visual c++.
  5. akashvij

    little help plz?

    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...
  6. akashvij

    little help plz?

    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...
  7. akashvij

    little help with simulation?

    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
  8. akashvij

    simulation?

    do we have any toturial for simulation? well an example for bank teller will help. thanks guys.
  9. akashvij

    storing data?

    thanks fellows. i will work it with out put member function.
  10. akashvij

    storing data?

    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(&quot;fileName&quot;,ios::in); char arrayPtr[20]; while(!fileopen.eof()) { fileopen.getline(arrayPtr,20)...
  11. akashvij

    storing a file?

    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...
  12. akashvij

    reading and storing file?

    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...
  13. akashvij

    reading and storing file?

    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
  14. akashvij

    Re:Class template

    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...
  15. akashvij

    Thanks BobbyB

    thank you very much sir. i will try to work it. i am really greatful for the help.

Part and Inventory Search

Back
Top