I am using VC, seems
所在版块:社会百科 发贴时间:2003-07-01 15:37  评分:

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
I have to convert the type in this program.

double *tptr = (double*) malloc(n*sizeof(double));

after using this statement, there is no errors, faint. Do you know why? Is it because of VC's complier settings?
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

Put your OWN COOL signature here!
 相关帖子 我要回复↙ ↗回到正文
question regarding to C dearjohn   (384 bytes , 743reads )
double *tptr = (double *)malloc(n*sizeof(double)); 鱽鳓   (0 bytes , 273reads )
replace double *tptr = malloc(n*sizeof(double)); va   (167 bytes , 200reads )
是的 hula   (66 bytes , 193reads )
这是我在别处看到的 dearjohn   (467 bytes , 239reads )
那么请问VC的default可不可以改成C?谢谢 dearjohn   (0 bytes , 246reads )
当然你要知道c++的类型安全是一种进步 hula   (18 bytes , 166reads )
你用的哪个版本的VC? hula   (53 bytes , 181reads )
我是用VC6.0,原来可以改成default C吗? dearjohn   (124 bytes , 308reads )
I am using VC, seems dearjohn   (210 bytes , 257reads )
suggest use: double *tptr = new double[n]   (161 bytes , 241reads )
呵呵,malloc比new更有效率 hula   (113 bytes , 232reads )
I compiled and run it with cc and gcc under unix simon   (24 bytes , 179reads )