1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

vectors c++.. help with codes. :)

Discussion in 'C++' started by ken45, Oct 19, 2010.


what must i do?

  1. wat would i do to access the input file to output file?

    0 vote(s)
  2. will i make another member to compute for the cfrs?

    0 vote(s)
  1. ken45

    ken45 New Member

    i then have came up with these codes(below) that has some sort of errors and yet to be incomplete with what the problem is asking..to all the great out there whom i admire.. pls help me debug and complete my codes..
    here's the code:
    #include <cstdlib>
    #include <iostream>
    using namespace std;
    class Student{
                double grade;
          char fullName();
          char idNumber();
          char subjectName();
          double classStanding(){return grade;};
          double prelimExam(){return grade;};
          double midtermExam(){return grade;}
          double prefinalExam(){return grade;}
          double finalExam(){return grade;};
    bool set(double g){
         if( ( g > 0.0 )&&( g < 100.0 ) )
               grade = g;                
                          return true;     
             cout<<"Alert: There is an invalid grade for this particular student.";
             return false;
    int main(int argc, char *argv[])
        ifstream fin;
    string line;
                       for(int i = 0; i < line.length() ; i++){
                                 ofstream fout;
        return EXIT_SUCCESS;
    The problem is attached ... so just clck the link to view the problem.:D:D:D

    Attached Files:

    Last edited by a moderator: Oct 19, 2010

Share This Page