|
비쥬얼 C++을 공부하고 있는 고등학생입니다 ㅠ
#include <iostream>
using namespace std;
int WhatIsIt(int nA, int nB);
void main()
{
int nA = 3;
int nB = 4;
WhatIsIt(nA, nB);
cout<<nA<<" and "<<nB<<endl;
}
int WhatIsIt(int nA, int nB){
nA=nA+1;
return nA;
}
4 and 4를 출력하고 싶은데 왜 안되는지 모르겠어요^^; 좀 알려주시와요
|