[英]Win32 Console Project issue
我用VS2010創建了一個Win32 Console項目(禁用“預編譯頭”選項)。
然后我按如下所示填充代碼
#include <stdio.h>
int main (void) {
double d = 0x0.3p10;
printf ("%.f\n", d);
return 0;
}
編譯器在double d = 0x0.3p10;
的行上顯示語法錯誤double d = 0x0.3p10;
。
: error C2059: syntax error : 'bad suffix on number'
: error C2143: syntax error : missing ';' before 'constant'
: error C2146: syntax error : missing ';' before identifier 'p10'
: error C2065: 'p10' : undeclared identifier
我的項目配置有問題嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.