Home > Back-end >  Why is the same code in vc has been an error to DC, there is no problem this code didn't wrong
Why is the same code in vc has been an error to DC, there is no problem this code didn't wrong

Time:12-04

#include
Int main (int arg c, char * argv [])
{
Double=11348.0, p=8.9 d, r, v, w.
R=d/2.0/100.0;
V=4.0/3.0 * 3.1415926 * r * r * r;
W=p * v.
Printf (" w=% lf kg \ n ", w);
return 0;
}
Why does this run in vc + + 6.0 has been show perform error while copying to Dev c + + is no problem running results also right

CodePudding user response:

No problem, in compliance with the latest standards C code,

CodePudding user response:

Confirm the environmental problems, including the compiler version, etc

CodePudding user response:

Vc + + 6.0

CodePudding user response:

In the VC6
VC6EN https://pan.baidu.com/s/1_t4HPLJZCdiIaJKecguK_A

CodePudding user response:

quoted zhao 4, 4/f, the teacher's reply:
in the VC6
VC6EN https://pan.baidu.com/s/1_t4HPLJZCdiIaJKecguK_A
ok thank you
  • Related