[ create a new paste ] login | about

Link: http://codepad.org/GpL1UFUZ    [ raw code | output | fork ]

박정욱 - C++, pasted on Jun 15:
//2번
/*
#include<iostream>

using namespace std;

int hap_sub(int a, int b);

int main()
{
	int a =20;
	int b = 30;
	cout << "200911636 박정욱"<<endl;
	cout<< " 이곳은 메인함수 부분.\n";
	cout << " hap_sub(a,b) = "<<  hap_sub(a,b)<< endl;

	return 0;
}

int hap_sub(int a, int b)
{
	cout <<"이곳은 함수부분.\n"<< a<<"와 "<< b<<"의 합을 구합니다."<< endl;
	return a+b;
}

*/


Output:
1
2
In function `_start':
undefined reference to `main'


Create a new paste based on this one


Comments: