把文件的名字该为.cpp,加入就行了。

解决方案 »

  1.   

    直接加呀。
    菜单:Project\Add to Project\files
      

  2.   

    1、如果我的程序不想改成.cpp
    因为函数的原形大部分是
    void num(n)
    int n;
    {
    }
    很老的!
      

  3.   

    那就直接按照ccnuxjg的方法做吧,应该没有问题的。
      

  4.   

    我加进工程后,编译时
    刚开始时unexpected end of file while looking for precompiled header directive后来在.c文件之前加入
    #include "stdafx.h"
    编译还是通不过is not a precompiled header file created with this compiler