#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 라는 최종값을 어디로 리턴한다는 말이야???
변수 전달경로좀 알려줭 ㅜㅜ
되->돼
씨아웃에서 함ㅅ수 콜 한부분이 리턴 값으로 치환된다면 이해가 가려나??
cout<< 5 랑 cout<< int datacalc랑 비슷 하다고 보면되지않을까
저 함수의 함수 기능이 아니라 함수 그 자체에 대해 질문한건가 당황스럽다
니가 걸프렌드가 있을리가 없는데 걸프렌드에이지는 당연히 null 이지
잡스런 설치필요없는 모바일 고화질 실시간 스포츠 시청 [사요나라티비]
사다리 달팽이 합작 단ㅌ 초대 tocara2
사다리 달팽이 합작 단ㅌ 초대 tocara2