スポンサード リンク
Microsoft Visual C++にて以下のソースでコンパイルエラーが発生します:
コンパイルエラーメッセージ:
error C3680: ユーザー定義文字列リテラルを、一致しないリテラル サフィックス識別子と連結することはできません
ソース(バグ有り):
#include <stdio.h>
int main(void)
{
FILE *fp;
fopen_s(&fp,"c:\\temp\\test"txt","w");
fprintf(fp,"test message");
fclose(fp);
return 0;
} |
ソース(修正済み):
#include <stdio.h>
int main(void)
{
FILE *fp;
fopen_s(&fp,"c:\\temp\\test.txt","w");
fprintf(fp,"test message");
fclose(fp);
return 0;
} |
スポンサード リンク