Develop

[c++] 헤더, 소스 파일 분리해서 작성해본 테스트 소스

by hooni posted Apr 23, 2013
?

Shortcut

PrevPrev Article

NextNext Article

ESCClose

Larger Font Smaller Font Up Down Go comment Print

헤더(*.h)파일과 소스(*.cpp)파일 분리해서 작성하는 샘플


#include <stdio.h>
#include <Circle.h>
#include <Rectangle.h>
#include <Triangle.h>

int main(){

	Rectangle arectangle(4, 2);
	printf("%lf
", arectangle.area());
	
	return 0;
}