I'm putting everything into files now and it's giving me a bit of trouble. It's telling me that one of my files does not exist or there's no such directory. I'm not sure why it says that. I have everything saved in the same folder.

Hey chandra.rajat, I wanted to let you know that I just figured out what I was doing wrong. Thanks again for all your help.

lol.....I'm tired....I just saw that they were not declared in the class CSci_Course. However, I'm now getting two errors and I have no clue what's wrong. I'm getting:
1>project2.obj : error LNK2019: unresolved external symbol "public: __thiscall CSci_Course::CSci_Course(void)" (??0CSci_Course@@QAE@XZ) referenced in function "public: __thiscall CSci_41::CSci_41(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int,int)" (??0CSci_41@@QAE@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HH@Z)

and

fatal error LNK1120: 1 unresolved externals

If you could help me with these two errors I think I'll be done for the night. Thank again

It just looked cluttered, so I felt I was doing something wrong. Asking for the class name 3 times, length 3 times, and time 3 times. So that is what I'm supposed to do? Also, if you could possibly tell me why the compiler says that 'getClassName' and'getClassLength' are not members of CSci_Course. Thanks again for the help.

Thanks for the reply. I spoke with my professor frequently while writing the polymorphic code and he instructed the class on the implementation of the virtual functions. I feel that I have a poor understanding of polymorphism. Right now I'm just trying to limp through the assignment then hopefully reread the chapter to gain a better understanding. However, when I do enter the input would I just do:
[CODE]
cout << "enter a class name: ";
string newClassName;
getline( cin, newClassName );
C41.setClassName( newClassName );
[/CODE]

Would I repeat that for each class? Thanks again for the reply.

Hey everyone, I haven't been here in sometime but I'm in need of some guidance. One of the questions I have is how do I enter the name, length, and time for each course? Thanks in advance for the help. Here's what I'm supposed to do:

Using OOp inheritance and polymorphism, create four classes as follows:

(1) CSci_Course:
-an abstract class with virtual function getClassTime(); Reason: it is meaningless to have a real classTime for a general CSci class.
-with variables classTime, length, className;

(2) CSci_41:
-an implementation of function getClassTime();
-with variable classTime, className;
-Constructor with arguments of classTime, length, className.

(3) CSci_148:
-an implementation of function getClassTime();
-with variable classTime, className;
-Constructor with arguments of classTime, length, className.

(4) CSci_156:
-an implementation of function getClassTime();
-with variable classTime, className;
-Constructor with arguments of classTime, length, className.

The main program asks the starting time, length, and name of each class. Then, creates 3 pointers of type Csci-Course, and calls getClassTime() function. It should return the actual time of different courses. Finally, if there is a conflict on time schedule, a warning should be provided with clear message which two courses have a conflict.

Note:
(1) you must use Polymorphism;
(2) Make an individual file for each class and the main function;
(3) main function should be put in a file "schedule.cc".

Here's what I have so far:

[CODE]

include <iostream>

include <string>

using namespace std;

class CSci_Course
{

public:

CSci_Course();
virtual int getClassTime() = 0;

protected:

string className;
int ...

Hello everyone, I haven't been stuck in quite some time, but I'm stuck. I have to read a list of names from a file, then sort them, then write the sorted names to a second file. I've been going to forum and reading articles on line but I don't understand how to read or write from a file. Do I make a text file in notepad first? As I've said in my previous posts I'm not looking for someone to do my work for me, but I'm looking for someone to guide me in the right direction. Thanks for the help in advance.

Thanks for all the replies. I got it and it works perfectly. Thanks for all your help.

Hey everyone, I'm new to C++ programming and have just started the semester and having a bit of trouble with my second homework assignment. Here's the assignment: Write a program that accepts a 7-9 digit integer andechoes the number with commas between every three
digits from the right. Here's what I have so far:

[code]

include <iostream>

using namespace std;

int main() //Needed in every program, where program execution begins
{
int number;

  cout << "Please enter a 7 to 9 digit number" << endl;
  cin >> number; 
  cout << "The number you entered is: " << number << endl;

  return 0; 

}
[/code]

As you can see from my code above that my issue comes in when it comes to placing the commas. Would I use an if statement and mod division? I don't want you to do my homework, I want you to point me in the right direction. Thanks in advance for the help.