Comparing vectors

This is a discussion on Comparing vectors within the C++ Programming forums, part of the General Programming Boards category; I have a program that calculates GPA based on previous credits, quality points, and grades for the current semester. I ...

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    122

    Comparing vectors

    I have a program that calculates GPA based on previous credits, quality points, and grades for the current semester. I have parallel vectors holding all these values including the grading scheme. I have the program take the users input and place that input into a vector. I need to compare that persons input vector to the grading scheme vector to be able to see if the grade affects the GPA and to see if they earned the credit.

    I have templates for binary search, sequential search add in order and all that. I know I can't search a vector with the search term being another vector unless I specify which area of the vector I search? Maybe I'm wrong but a little help would push me in the right direction. Thanks!

  2. #2
    Registered User
    Join Date
    Apr 2008
    Posts
    122
    Sorry...disregard this post. Figured it out by myself!
    Last edited by Todd88; 09-25-2008 at 03:52 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Vectors
    By naseerhaider in forum C++ Programming
    Replies: 11
    Last Post: 05-09-2008, 09:21 AM
  2. How can i made vectors measuring program in DevC++
    By flame82 in forum C Programming
    Replies: 1
    Last Post: 05-07-2008, 03:05 PM
  3. How properly get data out of vectors of templates?
    By 6tr6tr in forum C++ Programming
    Replies: 4
    Last Post: 04-15-2008, 11:35 AM
  4. How to use Vector's in C++ !?!
    By IndioDoido in forum C++ Programming
    Replies: 3
    Last Post: 10-14-2007, 12:13 PM
  5. Comparing vectors
    By Suchy in forum C++ Programming
    Replies: 3
    Last Post: 03-25-2007, 11:37 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21