请问这个错误怎么解决?就是用VC6.0如何让它变对

img


谢谢大家

double dDoubleStyle;挪到fFloatStyle = 1.23f;之前。C89要求局部变量定义必须在函数开头。C99之后可以在函数内任意位置定义局部变量。

FROM https://en.cppreference.com/w/c/language/declarations#Notes

In C89, declarations within any compound statement (block scope) must appear in the beginning of the block, before any statements.