-1
嘗試編譯此代碼時出現Undefined reference
錯誤。未定義的電源參考
#include <stdio.h>
int power(int m, int n);
int main()
{
printf("%d", power(2,5));
return 0;
}
嘗試編譯此代碼時出現Undefined reference
錯誤。未定義的電源參考
#include <stdio.h>
int power(int m, int n);
int main()
{
printf("%d", power(2,5));
return 0;
}
您宣佈power
但你需要實現它。
#include <stdio.h>
int power(int m, int n)
{
.. your code goes here
}
int main()
{
printf("%d", power(2,5));
return 0;
}
嘗試*鏈接*時出現此錯誤。它會編譯好。 –