汗``
用代码打出楼房...用编程编出幸福...
1 for(;i<count;i++)
{
p_student->student=p_student[i+1]->student;
}
2 for(;i<count;i++)
{
p_student->student1=p_student[i+1]->student1;
}
--count; //成绩减1
--------------------Configuration: studentxitong - Win32 Debug--------------------
Compiling...
com.c
f:\c++workspace\student\studentxitong\com.c(327) : error C2232: '->student' : left operand has 'struct' type, use '.'
f:\c++workspace\student\studentxitong\com.c(1584) : error C2232: '->student1' : left operand has 'struct' type, use '.'
Error executing cl.exe.
studentxitong.exe - 2 error(s), 0 warning(s)
这两地方不会改了,不知道怎么改啊!!
改了一下不报那了
p_student->student=p_student[i+1].student;
不过有说:
Linking...
main.obj : error LNK2005: _filename1 already defined in com.obj
main.obj : error LNK2005: _filename already defined in com.obj
main.obj : error LNK2005: _sorcfile already defined in com.obj
main.obj : error LNK2005: _infofile already defined in com.obj
showmeun.obj : error LNK2005: _filename1 already defined in com.obj
showmeun.obj : error LNK2005: _filename already defined in com.obj
showmeun.obj : error LNK2005: _sorcfile already defined in com.obj
showmeun.obj : error LNK2005: _infofile already defined in com.obj
com.obj : error LNK2001: unresolved external symbol _submeun
Debug/studentxitong.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
studentxitong.exe - 10 error(s), 0 warning(s)