ASAP Please help me :(

I'm stuck,
I cant find anything that's wrong.maybe im just sleepy and I have to give this in tomorrow morning! which is 8 hours away.
so anybody please..help me.

class subject
{
private:
char subjectName[20];
char kod[8];
int credit;
public:
subject (char *,char *,int k=3);
void getDetail();
friend void changeSubject(subject);
};
subject:: subject (char *sub,char *kd,int kre)
{ strcpy(subjectName,sub);
strcpy(kod,kd);
credit = kre;
}
void subject:: getDetail()
{
cout << "\n\nSubject Name : " << subjectName;
cout << "\nSubject Code : " << kod;
cout << "\nCredit hours : " << credit;
}


void changeSubject(subject sub);
{ cout << "\nInsert new subject name: "; Access class
cin >> sub. subjectName;
cout << "\nInsert new subject code: ";
cin >> sub.kod;
cout << "\n Get new information for the subject.";
sub. getDetail();

}
main()
{ subject DS("Data Structure C++","SCJ2013");
DS.getDetail();
( )
changeSubject(DS);
cout << "\n View the subject information again: ";
DS.getDetail();
getch();
I cant find anything that's wrong.
[...]
so anybody please..help me.

Um... if you can't find anything wrong, then what is it you're asking us to help with?
my bad...I know there's something wrong with it...
I've left using C++ for some time, and I seem to forgotten it.
and I don't even know what's wrong with it. I tried to run but there were errors. I've adde the #include <iostream.h> and #include <string.h>
We can't help you since we don't have the compiler error.
Or can we?

And please use the code embed
Topic archived. No new replies allowed.