#include <iostream>

#include <cmath>

#include <cstdlib>

int datacalc(int);

using namespace std;


int main()

{

int age;

cout << "enter your age : " << endl;

cin >> age;

cout << datacalc(age) << endl;

cin.get();

return 0;

}

int datacalc(int myAge)

{

int girlfriendsAge = myAge/2+7;


return girlfriendsAge; 

}


함수 커스커마이징 한건데 

cout << datacalc(age) << endl;

이부분에서 

int datacalc(int myAge)

{

int girlfriendsAge = myAge/2+7;


return girlfriendsAge; 

}

이쪽으로 데이타를 넘겨받는게 이해가 안되... 그리고


return girlfriendsAge 라는 최종값을 어디로 리턴한다는 말이야???


변수 전달경로좀 알려줭 ㅜㅜ