#include
#include
void fun( int m, int k )
{
int aa[20], i;
for( i = 0; m>0; i++ )
{
/**********found**********/
aa[i] = m%k;
m /= k;
}
for( i--; i; i-- )
/**********found**********/
printf( "%d", aa[ i ] );
}
main()
{
int b, n;
printf( "\nPlease enter a number and a base:\n" );
scanf( "%d %d", &n, &b );
fun( n, b );
printf("\n");
}
代碼寫出後就出現了不支持默認int的提示,求大神指教
很明顯,main函數沒有返回類型