Thread: help working with class files for first time

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    38

    Exclamation help working with class files for first time

    I am having to write a program that works with class files.
    The class file and the header file CAN NOT be changed. I have to write main.

    I understand the concept but am not sure how to work with the "class" part and might be trying to use it in the same way you would an array.

    any help or advice would be greatly appreciated.

    here are the three files and the list of errors that I am getting.

    this is the main file
    Code:
    /*
      Jessie Brown
      cop2334
    
    
    
    
    
    
      */
    
    #include "Student.h"
    //Prototypes -- function declarations.
      //-----------------------------------
    
       void Menu_Selection();
       void enter_students (int[],int,int,int& total);
    
    
    
    
    
    int main()
    {
    
    
      Menu_Selection();
    
    
    
    
    
    
    
        // the following lines keep the console open
            cout << "\nPress <ENTER> to continue.\n";
            fflush(stdin);
            cin.get();
    
    
    	return 0;
    }
    
    
    /*------------------------------------------------------------------------------
            This section of code is the initial screen after employee signs in
                    to system.  From here said employee can choose what she must
                    do with each customer being assisted.
    ------------------------------------------------------------------------------*/
    
    
      void Menu_Selection()
    {
    
    
         int student[STUDENT_LIMIT], total=0, examnumber=0;
         int exam[EXAM_LIMIT];
         int studentID;
         int option;
    
         do
         {
              cout << endl
                   << "1. Add a new student to roster. \n \n"
                   << "2. Enter exam score for all students. \n \n"
                   << "3. Display student exam averages. \n \n"
                   << "4. Display course information for all students. \n \n"
                   << "5. Exit program: \n \n";
                   
              cin >> option;
              cout << endl;
              
              switch (option)
               {
                    case 1:
                         enter_students (student,studentID,STUDENT_LIMIT,total);
                         cout << endl;
                         break;
                     case 2:
                         cout << "works 2";
                         cout << endl;
                         break;
                    case 3:
                        cout << "works 3";
                         cout << endl;
                         break;
                    case 4:
                         cout << "works 4";
                         cout << endl;
                         break;
                   case 5:
                        cout << "End of Program.\n";
                        break;
                    default:
                    cout << "Not a valid option. Please choose a valid option. \n\n";
               }
         }while (option != 5);
    
    
    }
    
    /*------------------------------------------------------------------------------
     This function allows a user to add an account with its beginning balance.
            accounts are to be sorted and no to account numbers are to be the same
    ------------------------------------------------------------------------------*/
    void enter_accounts (int student[],int studentID,const int STUDENT_LIMIT, int& total)
    {
     string temp1;
     string temp2;
     int tempID;
    
    
     if(total >= STUDENT_LIMIT)
           {
            cout <<"Registration closed for this section.\n";
           }
          else if(total <STUDENT_LIMIT)
            {
             cout <<"Please enter students first name.\n";
             cin >> temp1;
             cout <<"Please enter students last name.\n";
             cin << temp2;
             student[total].setName(temp1,temp2);
              
             cout << "Enter student ID.\n";
             cin >> tempID;
             student[total].setID(tempID);
    
             cout << student[total].getFULLNAME() <<endl;
             cout << "ID: " << student[total].getID() << endl;
    
             total++;
             }
    
     }
    this is the class file
    Code:
    #include "Student.h"
    
    /*
    	This is a constructor.
    	It assigns default values to a new Student.
    */
    Student::Student()
    {
    	ID = -1;
    	lastName = "";
    	firstName = "";
    	for( int i=0; i<EXAM_LIMIT; i++ ) exams[i] = -1;
    }
    
    /*
    	Returns full name formatted LAST, FIRST
    */
    string Student::getFullName()
    {
    	return lastName + ", " + firstName;
    }
    
    /*
    	Assigns the two parameters as first and last names.
    */
    void Student::setName( string theFirstName, string theLastName )
    {
    	firstName = theFirstName;
    	lastName = theLastName;
    }
    
    /*
    	Standard getter (accessor) for ID
    */
    int Student::getID()
    {
    	return ID;
    }
    
    /*
    	Standard setter (mutator) for ID
    */
    void Student::setID( int theID )
    {
    	ID = theID;
    }
    
    /*
    	Accesses the desired score.
    	If the exam number does not map to the array
    		it returns a -1.
    	Notice, this function does not test for a 
    		negative test score.
    */
    double Student::getExamScore( int examNumber )
    {
    	if( examNumber < 0 || examNumber > EXAM_LIMIT ) return -1;
    	return exams[examNumber];
    }
    
    /*
    	Sets the indicated exam to the score provided.
    	This over writes any score previously entered
    		without warning!!
    */
    void Student::setExamScore( int examNumber, double score )
    {
    	if( examNumber < 0 || examNumber > EXAM_LIMIT ) return;
    	exams[examNumber] = score;
    }
    
    /*
    	Returns the average of all positive test scores.
    	Negative scores are assumed to be invalid.
    	If the total of the scores is zero, return a zero.
    */
    double Student::getExamAverage()
    {
    	double total = 0;
    	int examCount = 0;
    	for( int i=0; i<EXAM_LIMIT; i++ )
    		if( exams[i] >= 0 ) 
    		{
    			total = total + exams[i];
    			examCount++;
    		}
    	if( examCount == 0 ) return 0;
    	else return total / examCount;
    }
    this is the header file (student.h)
    #include <iostream>
    #include <string>
    using namespace std;

    const int EXAM_LIMIT = 3;
    const int STUDENT_LIMIT = 10;

    class Student
    {
    public:
    Student();
    string getFullName();
    void setName( string theFirstName, string theLastName );
    int getID();
    void setID( int theID );
    double getExamScore( int examNumber );
    void setExamScore( int examNumber, double score );
    double getExamAverage();

    private:
    int ID;
    string firstName, lastName;
    double exams[EXAM_LIMIT];
    };
    these are the errors that I am getting and do not understand how to fix. I know that it has to do with the way i am coding "student[total]" but not sure of the specifics.
    I also am not worried about the warning as I have not written code to use the exam functions yet.

    [C++ Warning] Project6.cpp(100): W8004 'examnumber' is assigned a value that is never used
    [C++ Error] Project6.cpp(123): E2294 Structure required on left side of . or .*
    [C++ Error] Project6.cpp(127): E2294 Structure required on left side of . or .*
    [C++ Error] Project6.cpp(129): E2294 Structure required on left side of . or .*
    [C++ Error] Project6.cpp(130): E2294 Structure required on left side of . or .*
    also I know I should not use this, this is the code the instructor has us use to keep the console window open in borland and yes I have read the FAQ on this. (standard disclaimer as someone always comments on this code in my assignments!)
    Code:
    / the following lines keep the console open
            cout << "\nPress <ENTER> to continue.\n";
            fflush(stdin);
            cin.get();
    I am using borland to compile.
    Again any help is greatly appreciated.
    Jess
    http://www.amberdawnlove.com

  2. #2
    MFC killed my cat! manutd's Avatar
    Join Date
    Sep 2006
    Location
    Boston, Massachusetts
    Posts
    870
    I take for example this:
    Code:
    student[total].setID(tempID);
    student is declared as an int, which has no member setID(tempID). This is how student is declared:
    Code:
     int student[STUDENT_LIMIT];
    You want
    Code:
    Student student[STUDENT_LIMIT];
    Silence is better than unmeaning words.
    - Pythagoras
    My blog

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    38
    I am not sure i understand you post, what do you mean no member setID(tempID)

    and Student student[STUDENT_LIMIT]; is not a declaration type that I am familiar with,
    can you explain it a little better,

    not wanting to just change code wanting to understand code!

    sincerely
    jesshttp://www.amberdawnlove.com

  4. #4
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    wanting to understand code!
    Why do you want to understand code containing errors? Take error free sample and try to understand it.

    what do you mean no member setID
    student[total].setID(tempID);
    this string asks to take the item total from the array of student
    then call the member function setID given as a parameter tempID

    only class or struct can have a member functions
    but student[total] is int
    int has no member functions
    so this code will not compile
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  5. #5
    Registered User
    Join Date
    Nov 2006
    Posts
    38
    I want to understand WHAT i did wrong,
    and your response helped, it provided an explanation as to why mine was wrong!

    can you explain how the correct code can be written and what is does.


    thank you
    jess
    http://www.amberdawnlove.com

  6. #6
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    As was said
    You want
    Code:
    Student student[STUDENT_LIMIT];
    This declares the array of objects, each object has type class Student, so each object has members (as declared in the class Student definition)
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  7. #7
    Registered User
    Join Date
    Nov 2006
    Posts
    38
    i changed to code to what is suggested and this is what i get now, i am missing something, not understanding how to call specific students maybe or .......... this is the first program i am writing using classes
    Code:
    /*
      Jessie Brown
      cop2334
    
    
    
    
    
    
      */
    
    #include "Student.h"
    //Prototypes -- function declarations.
      //-----------------------------------
    
       void Menu_Selection();
       void enter_students (int[],int,int,int& total);
    
    
    
    
    
    int main()
    {
    
    
      Menu_Selection();
    
    
    
    
    
    
    
        // the following lines keep the console open
            cout << "\nPress <ENTER> to continue.\n";
            fflush(stdin);
            cin.get();
    
    
    	return 0;
    }
    
    
    /*------------------------------------------------------------------------------
            This section of code is the initial screen after employee signs in
                    to system.  From here said employee can choose what she must
                    do with each customer being assisted.
    ------------------------------------------------------------------------------*/
    
    
      void Menu_Selection()
    {
    
    
         student student[STUDENT_LIMIT]
         int total=0, examnumber=0;
         int exam[EXAM_LIMIT];
         int studentID;
         int option;
    
         do
         {
              cout << endl
                   << "1. Add a new student to roster. \n \n"
                   << "2. Enter exam score for all students. \n \n"
                   << "3. Display student exam averages. \n \n"
                   << "4. Display course information for all students. \n \n"
                   << "5. Exit program: \n \n";
    
              cin >> option;
              cout << endl;
              
              switch (option)
               {
                    case 1:
                         enter_students (student,studentID,STUDENT_LIMIT,total);
                         cout << endl;
                         break;
                     case 2:
                         cout << "works 2";
                         cout << endl;
                         break;
                    case 3:
                        cout << "works 3";
                         cout << endl;
                         break;
                    case 4:
                         cout << "works 4";
                         cout << endl;
                         break;
                   case 5:
                        cout << "End of Program.\n";
                        break;
                    default:
                    cout << "Not a valid option. Please choose a valid option. \n\n";
               }
         }while (option != 5);
    
    
    }
    
    /*------------------------------------------------------------------------------
     This function allows a user to add an account with its beginning balance.
            accounts are to be sorted and no to account numbers are to be the same
    ------------------------------------------------------------------------------*/
    void enter_accounts (int student[],int studentID,const int STUDENT_LIMIT, int& total)
    {
     string temp1;
     string temp2;
     int tempID;
    
    
     if(total >= STUDENT_LIMIT)
           {
            cout <<"Registration closed for this section.\n";
           }
          else if(total <STUDENT_LIMIT)
            {
             cout <<"Please enter students first name.\n";
             cin >> temp1;
             cout <<"Please enter students last name.\n";
             cin >> temp2;
             student[total].setName(temp1,temp2);
              
             cout << "Enter student ID.\n";
             cin >> tempID;
             student[total].setID(tempID);
    
             cout << student[total].getFULLNAME() <<endl;
             cout << "ID: " << student[total].getID() << endl;
    
             total++;
             }
    
     }
    and this is the errors that i am now getting,
    [C++ Error] Project6.cpp(56): E2451 Undefined symbol 'student'
    [C++ Error] Project6.cpp(56): E2379 Statement missing ;
    [C++ Warning] Project6.cpp(101): W8004 'examnumber' is assigned a value that is never used
    [C++ Error] Project6.cpp(124): E2294 Structure required on left side of . or .*
    [C++ Error] Project6.cpp(128): E2294 Structure required on left side of . or .*
    [C++ Error] Project6.cpp(130): E2294 Structure required on left side of . or .*
    [C++ Error] Project6.cpp(131): E2294 Structure required on left side of . or .*
    am i maybe putting the student student[STUDENT_LIMIT] in the wrong place,
    I know what i am trying to do but the code is eluding me
    thanks for you patience
    jessie

  8. #8
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    student student
    C and C++ are case sencitive
    so
    Student student
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  9. #9
    Registered User
    Join Date
    Nov 2006
    Posts
    38
    man, that was a no brainer, should have caught that!!!
    okay I think I am getting closer, I can not express how much i appreciate this as it is helping me understand what i am doing and then i can get the rest of this program!!!!

    here is the new code
    Code:
    /*
      Jessie Brown
      cop2334
    
    
    
    
    
    
      */
    
    #include "Student.h"
    //Prototypes -- function declarations.
      //-----------------------------------
    
       void Menu_Selection();
       void enter_students (Student,int,int,int& total);
    
    
    
    
    
    int main()
    {
    
    
      Menu_Selection();
    
    
    
    
    
    
    
        // the following lines keep the console open
            cout << "\nPress <ENTER> to continue.\n";
            fflush(stdin);
            cin.get();
    
    
    	return 0;
    }
    
    
    /*------------------------------------------------------------------------------
            This section of code is the initial screen after employee signs in
                    to system.  From here said employee can choose what she must
                    do with each customer being assisted.
    ------------------------------------------------------------------------------*/
    
    
      void Menu_Selection()
    {
    
    
         Student student[STUDENT_LIMIT];
         int total=0, examnumber=0;
         int exam[EXAM_LIMIT];
         int studentID;
         int option;
    
         do
         {
              cout << endl
                   << "1. Add a new student to roster. \n \n"
                   << "2. Enter exam score for all students. \n \n"
                   << "3. Display student exam averages. \n \n"
                   << "4. Display course information for all students. \n \n"
                   << "5. Exit program: \n \n";
    
              cin >> option;
              cout << endl;
              
              switch (option)
               {
                    case 1:
                         enter_students (Student,studentID,STUDENT_LIMIT,total);
                         cout << endl;
                         break;
                     case 2:
                         cout << "works 2";
                         cout << endl;
                         break;
                    case 3:
                        cout << "works 3";
                         cout << endl;
                         break;
                    case 4:
                         cout << "works 4";
                         cout << endl;
                         break;
                   case 5:
                        cout << "End of Program.\n";
                        break;
                    default:
                    cout << "Not a valid option. Please choose a valid option. \n\n";
               }
         }while (option != 5);
    
    
    }
    
    /*------------------------------------------------------------------------------
     This function allows a user to add an account with its beginning balance.
            accounts are to be sorted and no to account numbers are to be the same
    ------------------------------------------------------------------------------*/
    void enter_accounts (Student[],int studentID,const int STUDENT_LIMIT, int& total)
    {
     string temp1;
     string temp2;
     int tempID;
    
    
     if(total >= STUDENT_LIMIT)
           {
            cout <<"Registration closed for this section.\n";
           }
          else if(total <STUDENT_LIMIT)
            {
             cout <<"Please enter students first name.\n";
             cin >> temp1;
             cout <<"Please enter students last name.\n";
             cin >> temp2;
             Student[total].setName(temp1,temp2);
              
             cout << "Enter student ID.\n";
             cin >> tempID;
             Student[total].setID(tempID);
    
             cout << Student[total].getFULLNAME() <<endl;
             cout << "ID: " << Student[total].getID() << endl;
    
             total++;
             }
    
     }

    and here are the new errors
    C++ Error] Project6.cpp(77): E2108 Improper use of typedef 'Student'
    [C++ Warning] Project6.cpp(101): W8004 'examnumber' is assigned a value that is never used
    [C++ Error] Project6.cpp(124): E2108 Improper use of typedef 'Student'
    [C++ Error] Project6.cpp(128): E2108 Improper use of typedef 'Student'
    [C++ Error] Project6.cpp(130): E2108 Improper use of typedef 'Student'
    [C++ Error] Project6.cpp(131): E2108 Improper use of typedef 'Student'
    thank you
    jessie

  10. #10
    Registered User
    Join Date
    Nov 2006
    Posts
    38
    I have made a few more adjustments and I think i might be getting there, any insight is greatly appreciated thank

    here is the code
    Code:
    /*
      Jessie Brown
      cop2334
    
    
    
    
    
    
      */
    
    #include "Student.h"
    //Prototypes -- function declarations.
      //-----------------------------------
    
       void Menu_Selection();
       void enter_students (int,int& total);
    
    
    
    
    
    int main()
    {
    
    
      Menu_Selection();
    
    
    
    
    
    
    
        // the following lines keep the console open
            cout << "\nPress <ENTER> to continue.\n";
            fflush(stdin);
            cin.get();
    
    
    	return 0;
    }
    
    
    /*------------------------------------------------------------------------------
            This section of code is the initial screen after employee signs in
                    to system.  From here said employee can choose what she must
                    do with each customer being assisted.
    ------------------------------------------------------------------------------*/
    
    
      void Menu_Selection()
    {
    
    
         Student student[STUDENT_LIMIT];
         int total=0, examnumber=0;
         int exam[EXAM_LIMIT];
         int studentID;
         int option;
    
         do
         {
              cout << endl
                   << "1. Add a new student to roster. \n \n"
                   << "2. Enter exam score for all students. \n \n"
                   << "3. Display student exam averages. \n \n"
                   << "4. Display course information for all students. \n \n"
                   << "5. Exit program: \n \n";
    
              cin >> option;
              cout << endl;
              
              switch (option)
               {
                    case 1:
                         enter_students (STUDENT_LIMIT,total);
                         cout << endl;
                         break;
                     case 2:
                         cout << "works 2";
                         cout << endl;
                         break;
                    case 3:
                        cout << "works 3";
                         cout << endl;
                         break;
                    case 4:
                         cout << "works 4";
                         cout << endl;
                         break;
                   case 5:
                        cout << "End of Program.\n";
                        break;
                    default:
                    cout << "Not a valid option. Please choose a valid option. \n\n";
               }
         }while (option != 5);
    
    
    }
    
    /*------------------------------------------------------------------------------
     This function allows a user to add an account with its beginning balance.
            accounts are to be sorted and no to account numbers are to be the same
    ------------------------------------------------------------------------------*/
    void enter_accounts (const int STUDENT_LIMIT, int& total)
    {
     string temp1;
     string temp2;
     int tempID;
    
    
     if(total >= STUDENT_LIMIT)
           {
            cout <<"Registration closed for this section.\n";
           }
          else if(total <STUDENT_LIMIT)
            {
             cout <<"Please enter students first name.\n";
             cin >> temp1;
             cout <<"Please enter students last name.\n";
             cin >> temp2;
             Student[total]=studentTemp;
             studentTemp.setName(temp1,temp2);
    
             cout << "Enter student ID.\n";
             cin >> tempID;
            studentTemp.setID(tempID);
    
             cout << studentTemp.getFULLNAME() <<endl;
             cout << "ID: " << studentTemp.getID() << endl;
    
             total++;
             }
    
     }
    here are the errors that i am getting now
    [C++ Warning] Project6.cpp(101): W8004 'examnumber' is assigned a value that is never used
    [C++ Error] Project6.cpp(124): E2108 Improper use of typedef 'Student'
    [C++ Error] Project6.cpp(124): E2451 Undefined symbol 'studentTemp'
    again thanks

  11. #11
    Registered User
    Join Date
    Nov 2006
    Posts
    38
    okay here we go again, i think that i might have this

    Code:
    /*
      Jessie Brown
      cop2334
    
    
    
    
    
    
      */
    
    #include "Student.h"
    //Prototypes -- function declarations.
      //-----------------------------------
    
       void Menu_Selection();
       void enter_students (int,int& total);
    
    
    
    
    
    int main()
    {
    
    
      Menu_Selection();
    
    
    
    
    
    
    
        // the following lines keep the console open
            cout << "\nPress <ENTER> to continue.\n";
            fflush(stdin);
            cin.get();
    
    
    	return 0;
    }
    
    
    /*------------------------------------------------------------------------------
            This section of code is the initial screen after employee signs in
                    to system.  From here said employee can choose what she must
                    do with each customer being assisted.
    ------------------------------------------------------------------------------*/
    
    
      void Menu_Selection()
    {
    
    
         Student student[STUDENT_LIMIT];
         int total=0, examnumber=0;
         int exam[EXAM_LIMIT];
         int studentID;
         int option;
    
         do
         {
              cout << endl
                   << "1. Add a new student to roster. \n \n"
                   << "2. Enter exam score for all students. \n \n"
                   << "3. Display student exam averages. \n \n"
                   << "4. Display course information for all students. \n \n"
                   << "5. Exit program: \n \n";
    
              cin >> option;
              cout << endl;
              
              switch (option)
               {
                    case 1:
                         enter_students (STUDENT_LIMIT,total);
                         cout << endl;
                         break;
                     case 2:
                         cout << "works 2";
                         cout << endl;
                         break;
                    case 3:
                        cout << "works 3";
                         cout << endl;
                         break;
                    case 4:
                         cout << "works 4";
                         cout << endl;
                         break;
                   case 5:
                        cout << "End of Program.\n";
                        break;
                    default:
                    cout << "Not a valid option. Please choose a valid option. \n\n";
               }
         }while (option != 5);
    
    
    }
    
    /*------------------------------------------------------------------------------
     This function allows a user to add an account with its beginning balance.
            accounts are to be sorted and no to account numbers are to be the same
    ------------------------------------------------------------------------------*/
    void enter_accounts (const int STUDENT_LIMIT, int& total)
    {
     string temp1;
     string temp2;
     Student studentTemp;
     int tempID;
    
    
     if(total >= STUDENT_LIMIT)
           {
            cout <<"Registration closed for this section.\n";
           }
          else if(total <STUDENT_LIMIT)
            {
             cout <<"Please enter students first name.\n";
             cin >> temp1;
             cout <<"Please enter students last name.\n";
             cin >> temp2;
             Student[total]=studentTemp;
             studentTemp.setName(temp1,temp2);
    
             cout << "Enter student ID.\n";
             cin >> tempID;
            studentTemp.setID(tempID);
    
             cout << studentTemp.getFullName() <<endl;
             cout << "ID: " << studentTemp.getID() << endl;
    
             total++;
             }
    
     }
    here are the errors,
    [C++ Warning] Project6.cpp(101): W8004 'examnumber' is assigned a value that is never used
    [C++ Error] Project6.cpp(125): E2108 Improper use of typedef 'Student'
    any help is appreciated.

  12. #12
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,788
    Student[total]
    Student is a type - you cannot access it as array
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    – David J. Wheeler

  13. #13
    Registered User
    Join Date
    Nov 2006
    Posts
    5
    It seems that you are confusing the class and the class instance. You were (originally) trying to initialize the variable as
    Code:
    int student[STUDENT_LIMIT];
    That line would create an integer array called student. I know this has been addressed and fixed, but I include it to help show where I think your confusion lies.

    The easiest way to think of classes is as custom defined data types. Use them in a similar manner to how you would use int, char, float, bool, etc.

    So, when you use this line:
    Code:
    Student student[STUDENT_LIMIT];
    you are in effect creating an array of students. Each element in the array is a Student data type. So, you could use Student Billy = student[1]. This would assign the first student in the array to Billy. Assuming the first student object had the firstname of "Billy" and lastname of "Smith", the call
    Code:
    cout << Billy.getFullName();
    will return Smith, Billy.

    Using Student by itself does nothing, and declaring student as different datatype (such as int) merely results in a datatype with that variable name.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sending an email in C program
    By Moony in forum C Programming
    Replies: 28
    Last Post: 10-19-2006, 10:42 AM
  2. Replies: 3
    Last Post: 10-31-2005, 12:05 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. inputting time in separate compilation
    By sameintheend01 in forum C++ Programming
    Replies: 6
    Last Post: 03-13-2003, 04:33 AM
  5. time class
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 12-11-2001, 10:12 PM