关于二进制转换
#include<stdio.h>void to_binary(unsigned long n);
void main(){
int n;
scanf("%d",&n);
if(1){
printf("input one integer:\n");
printf("output the binary:\n");
to_binary(n);
}
void to_binary(unsigned long n){
unsigned long n;
int r=0;
r=n%2;
if(n>2){
to_binary)(n);
}
}
C:\vc\cprogram\binary\binary.c(13) : error C2143: syntax error : missing ';' before 'type'
C:\vc\cprogram\binary\binary.c(15) : error C2143: syntax error : missing ';' before 'type'
C:\vc\cprogram\binary\binary.c(16) : error C2065: 'r' : undeclared identifier
C:\vc\cprogram\binary\binary.c(18) : error C2059: syntax error : ')'
这几个错误时哪里啊,谁帮我看下,