8000 GitHub - Vinit-28/MyVector
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Vinit-28/MyVector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MyVector

I have tried to create my own vector header file. In this the programmer can create the vector and use its methods to play with the vector.

Steps to use MyVector.h :-

  1. Clone the respository or download the zip file and extract it.
  2. include the headerfile "MyVector.h" in program.
  3. Create Vector Objects and use it's methods.

Available Vector Methods are :-

// Vector Methods //

  1. push_in()
  2. pop_out()
  3. flush_vector()
  4. show_elements()
  5. sort()
  6. is_element_exits()
  7. get_length()
  8. implement_binary_search()
  9. get_element()
  10. get_sum()
  11. get_product()
  12. get_max()
  13. get_min()

// Operators that can be used with vector objects //

  1. [] // used to get elements by specifying their index
    •  // used to Concantenate two Vectors
      
  2. += // used to Concantenate two Vectors
  3. < // used to Compare two Vectors
  4.  // used to Compare two Vectors
    
  5. == // used to Compare two Vectors
  6. != // used to Compare two Vectors
  7. <= // used to Compare two Vectors
  8. = // used to Compare two Vectors

Class MyIterator :- This class helps to iterate over a vector.

Available Iterator methods :-

// Iterator Methods //

  1. restart_iterator()
  2. change_vector()

// Operators that can be used with iterator objects //

  1. = // used to assign value to th iterator
  2. == // used to Compare iterator objects
  3. != // used to Compare iterator objects
  4. ++ // used to increment value of iterator object ( Pre-Increment )
  5. ++ // used to increment value of iterator object ( Post-Increment )
  6. += // used to increment value of iterator object by the given value
  7. -- // used to deccrement value of iterator object ( Pre-decrement )
  8. -- // used to Decrement value of iterator object ( Post-Decrement )
  9. -= // used to Decrement value of iterator object by the given value
    •   // used to get the value from the iterator
      

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0