.c程序中的局部变量要定义在最上面。尝试把 /* first make sure that no three atoms are lining */ judge_dihedral(atom_still,atom1_axis, atom2_axis, (*patom)); 移到所有变量定义的后边。
void dihedral_change_cal( float dihedral, const position atom_still, const position atom1_axis, const position atom2_axis, position * patom)上面的 position
我打算用最原始的方法,把代码注释掉,然后一行一行的改了.很为难,我不理解VC给出错误的含义;以前也没有用过这个编译器编程。
希望使用VC的朋友帮帮忙吧,先谢谢大家了!!!!
我在linux下面是用emacs写程序的,我不知道会不会有关系??
/* first make sure that no three atoms are lining */
judge_dihedral(atom_still,atom1_axis, atom2_axis, (*patom));
移到所有变量定义的后边。
把文件改成.cpp估计就成了。