I'm getting these errors. On the first line and second line, it says No matching function for call to 'strcpy', i'm pretty sure im using the wrong preprocessor directive, I'm using #include < fstream>
void writeStudents(vector<student> &studentVector){
ifstream studentinfo;
studenttowrite allinfo;
studentinfo.open("students.bin");
for (unsigned int x=0 ; x<studentVector.size(); x++) {
allinfo.StuNo = studentVector[x].StuNo;
strcpy(allinfo.FirstName, studentVector[x].FirstName);
strcpy(allinfo.LastName, studentVector[x].LastName);
allinfo.major = studentVector[x].major;
allinfo.college = studentVector[x].college;
allinfo.Age = studentVector[x].Age;
allinfo.Gpa = studentVector[x].Gpa;
studentinfo.write(reinterpret_cast<char *>
(&studentVector[x]), sizeof(student));
}