This is a computer science Data Structure assignment Use yo

This is a computer science/ Data Structure assignment !!

Use you own words, Please do not copy and paste !!!

Write one to two paragraphs describing each of the following topics separatly:

Template classes
Vector class and applications

Make sure to include resources.

Thank you,

Solution

Template classes: a.) Depends on the data type .

Example: template < class type>

              class   TestClass

               {

                    body

               }

b.) template <class Item>

     void array <.......>

     {

        ....

     }

c.) Header files:

      main.cpp- #include \"test.h\"

      test.h- <body>

     test.cpp- #include \"test.h\"

d.) Finding the maximum of two integers:

       int maximum(int p, int q)

     {

         if( p> q)

        return p;

        else

       return q;

}

Vectors in data structures:

Vector basically depends on the soorage process in an array-as in they store the same type. Flexibility in the size occurs due to the dynamic allocation of internal array and also the boundary issues can be handles-but all this will occur only by the encapsulation of an array into a vector class.

Applications: a.) if the index is known then the data can be located

                    b.) also used of for insert and delete operations.

          

This is a computer science/ Data Structure assignment !! Use you own words, Please do not copy and paste !!! Write one to two paragraphs describing each of the
This is a computer science/ Data Structure assignment !! Use you own words, Please do not copy and paste !!! Write one to two paragraphs describing each of the

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site