user-0 提问: 编译错误

回复:
user: user-0
content: 引用 11 楼 u012421456 的回复:其他的还真没怎么注意 有些东西不知道，自己可以在编译器下慢慢试试，稍微改动一下代码，看运行后出现什么结果  有时候，我不知怎么出现的错误，不知道错误的原理，就用这种方法，但有时也能改好（当然，这个一般仅限于相对简单的程序）恩恩，我也是用这种方法。不过还不够熟练，有时候不愿去尝试。

user: user-1
content: 其他的还真没怎么注意 有些东西不知道，自己可以在编译器下慢慢试试，稍微改动一下代码，看运行后出现什么结果  有时候，我不知怎么出现的错误，不知道错误的原理，就用这种方法，但有时也能改好（当然，这个一般仅限于相对简单的程序）

user: user-0
content: 引用 8 楼 zhao4zhong1 的回复:C++浮点数常量的语法约定及其说明。好吧。。。

user: user-0
content: 引用 7 楼 u012421456 的回复:[quote=引用 4 楼 u012523688 的回复:] [quote=引用 1 楼 u012421456 的回复:] 16行该 2*i 24行1e是什么啊真是，忘了放乘号了，亏我还看了半天呢，那个1e-3代表10的负三次方[/quote] 那减号两边不该有空格啊！ lz去掉空格试试代码能用不[/quote]太棒了，你，真的不应该有空格，我把那个当运算符了，好像这里不能把它当做运算符来看，所以就不能用空格，其实里面还有几处错误，x = 3.0/4;

user: user-2
content: C++浮点数常量的语法约定及其说明。

user: user-1
content: 引用 4 楼 u012523688 的回复:[quote=引用 1 楼 u012421456 的回复:] 16行该 2*i 24行1e是什么啊真是，忘了放乘号了，亏我还看了半天呢，那个1e-3代表10的负三次方[/quote] 那减号两边不该有空格啊！ lz去掉空格试试代码能用不

user: user-0
content: 引用 3 楼 zhao4zhong1 的回复:C++ Floating-Point Constants Floating-point constants specify values that must have a fractional part. These values contain decimal points (.) and can contain exponents.  Syntax  floating-constant :  fractional-constant exponent-partopt floating-suffixopt digit-sequence exponent-part floating-suffixopt  fractional-constant :  digit-sequenceopt . digit-sequence digit-sequence .  exponent-part :  e signopt digit-sequence E signopt digit-sequence  sign : one of  + –  digit-sequence :  digit digit-sequence digit  floating-suffix :one of  f l F L  Floating-point constants have a “mantissa,” which specifies the value of the number, an “exponent,” which specifies the magnitude of the number, and an optional suffix that specifies the constant’s type. The mantissa is specified as a sequence of digits followed by a period, followed by an optional sequence of digits representing the fractional part of the number. For example:  18.46 38.  The exponent, if present, specifies the magnitude of the number as a power of 10, as shown in the following example:  18.46e0      // 18.46 18.46e1      // 184.6  If an exponent is present, the trailing decimal point is unnecessary in whole numbers such as 18E0.  Floating-point constants default to type double. By using the suffixes f or l (or F or L — the suffix is not case sensitive), the constant can be specified as float or long double, respectively.  Although long double and double have the same representation, they are not the same type. For example, you can have overloaded functions like  void func( double );  and   void func( long double );这是什么啊，完全看不懂啊，

user: user-0
content: 引用 2 楼 user-3 的回复:楼主粗心了，数字和变量的相乘中间要放乘号*恩恩，确实啊，惭愧。

user: user-0
content: 引用 1 楼 u012421456 的回复:16行该 2*i 24行1e是什么啊真是，忘了放乘号了，亏我还看了半天呢，那个1e-3代表10的负三次方

user: user-3
content: 楼主粗心了，数字和变量的相乘中间要放乘号*

user: user-2
content: C++ Floating-Point Constants Floating-point constants specify values that must have a fractional part. These values contain decimal points (.) and can contain exponents.  Syntax  floating-constant :  fractional-constant exponent-partopt floating-suffixopt digit-sequence exponent-part floating-suffixopt  fractional-constant :  digit-sequenceopt . digit-sequence digit-sequence .  exponent-part :  e signopt digit-sequence E signopt digit-sequence  sign : one of  + –  digit-sequence :  digit digit-sequence digit  floating-suffix :one of  f l F L  Floating-point constants have a “mantissa,” which specifies the value of the number, an “exponent,” which specifies the magnitude of the number, and an optional suffix that specifies the constant’s type. The mantissa is specified as a sequence of digits followed by a period, followed by an optional sequence of digits representing the fractional part of the number. For example:  18.46 38.  The exponent, if present, specifies the magnitude of the number as a power of 10, as shown in the following example:  18.46e0      // 18.46 18.46e1      // 184.6  If an exponent is present, the trailing decimal point is unnecessary in whole numbers such as 18E0.  Floating-point constants default to type double. By using the suffixes f or l (or F or L — the suffix is not case sensitive), the constant can be specified as float or long double, respectively.  Although long double and double have the same representation, they are not the same type. For example, you can have overloaded functions like  void func( double );  and   void func( long double );

user: user-1
content: 16行该 2*i 24行1e是什么啊