在C++中使用strcopy,我有一个名为 “Student.h”如何在C++
class LinkedList {
private:
class Student {
public:
int stId;
char stName [20];
char stMajor[20];
double stAverage;
Student * next;
Student() {
next = 0;
}
Student(int stId, char stName [20], char stMajor[20], double stAverage) {
this.stId = stId;
strcopy(this.stName, stName); // there is error here !
strcopy(this.stMajor, stMajor);
this.stAverage = stAverage;
}
文件,我应该怎么办?!
'strcopy()'? '的strcpy()'? – 2010-12-12 16:14:21