スポンサード リンク
Microsoft Visual C++にて以下のソースでコンパイルエラーが発生します:
コンパイルエラーメッセージ:
error C2668: 'abs' : オーバーロード関数の呼び出しを解決することができません。<ファイル名>: '__int64 abs(__int64)' の可能性があります。
ソース(バグ有り):
#include <stdio.h>
#include <stdlib.h>
//絶対値を表示
int main()
{ |
ソース(修正済み):
#include <stdio.h>
#include <stdlib.h>
//絶対値を表示
int main()
{ |
スポンサード リンク