-6
가능한 중복 : 나는 INT를 사용하지 들었다 코드에서 다른 함수를 호출 할 주요 INT의 변화에 약간적인 지침이 무엇인지
Calling functions from main() in c++가이드의 변화에 INT 주()
main2(), int main3() 등등 또한 컴파일러가 호출하여 선언 할 수 있도록 어떻게 선언합니까?
#include <iostream>
int main()
int main 2()
using namespace std;
int main()
code here ..... 1st function
int main2()
code here .... 2nd function
아니면
#include <iostream>
int anothername()
int seconddifferentname()
using namespace std;
int anothername()
code here ..... 1st function
int seconddifferentname()
code here .... 2nd function
"main"이외의 다른 함수의 이름을 지정하는 방법을 알고 싶습니까? –
예 크리스티안 케이 그게 도움이 될거야. – HK3008