菜鸟发问 。VC++中编译时出现如此错误,请问是什么原因,怎么解决?谢谢。 error C2601: 'DelFromFile' : local function definitions are illegal

解决方案 »

  1.   

    Compiler Error C2601
    'function name' : local function definitions are illegalAn attempt was made to define a function within a function.The following is an example that will generate this error:int main()
    {
       int i = 0;   int funcname(int j)
       {
          j++;
          return j;
       }
       
       i = funcname(i);
       return 0;
    }If you move the function into the global space, outside the main() function, the program will compile and run.
      

  2.   

    DelFromFile函数定义有问题,看看是不是只有定义,而没有实现。
      

  3.   

    nava is up!give him my score.