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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

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

    Class template.

    hello everybody I am working on a class project on class template. i have to give member function definition. Plz help me i am not able to understand what i am suppose to do. Plz give me some hints or explanation about it.Member function is bool readFromFile(char *fileName)-> read data of...
  17. akashvij

    Formating a float

    #include<iomanip> cout<<setprecision(3)<<setiosflags(ios::fixed); Note: When the ios::fixed flag is set, the value specified by the setprecision manipulator will be the number of digits to apper after the decimal point, not the number of significant digits. Hope this will help you!!!
  18. akashvij

    class template

    hello everybody This is my first time here. I am working on a class project on class template. i have to give member function definition. Plz help me i am not able to understand what i am suppose to do. Plz give me some hints or explanation about it.Member function is bool readFromFile(char...
  19. akashvij

    class template

    hello everybody This is my first time here. I am working on a class project on class template. i have to give member function definition. Plz help me i am not able to understand what i am suppose to do. Plz give me some hints or explanation about it.Member function is bool readFromFile(char...

Part and Inventory Search

Back
Top