꺄뜨르 2011. 12. 20. 13:44
header.h

#include <iostream>

int headerTest(int x); 



header.cpp

#include "header.h"

int headerTest(int x)
{
    int a = x * 2;
    return a;    
}

 

main.cpp

#include <cstdlib>

#include <iostream>

#include "header.h"


using namespace std;


int main(int argc, char *argv[])

{

    cout<<headerTest(10)<<endl;

    

    system("PAUSE");   

    

    return EXIT_SUCCESS;

}




devcpp로도 프로젝트 하면 편하구나...배울수록 재밌네