#include<iostream>
using namespace std;
int c;
int fun_div();
int fun_div(int a,int b){
if(a%b==0){
c=1;
cout<<"Solution Available :\t"<<c;
} else
{
c=0;
}
return c;
}
int main(){
int c;
int e,d;
cout<<"enter two values : \n";
cin>>e>>d;
cout<<endl;
}
오류 :모드 기능이 작동하지 않는 이유는 무엇입니까? 프로그램을 두 숫자의 모드를 발견하고 컴파일하지에
코드를 들여 쓰기 할 수 있습니까? – Danh
그리고 당신은'main' 그림자'int c;'전역에서'fun_div'를 – Danh
'int c; '라고 부르지 않았습니다. 이것은 미래의 슬픔을 일으킬 수 있습니다. – user4581301