作者suspect1 (嫌犯)
看板EE_DSnP
标题[问题] new int
时间Mon Oct 23 10:41:31 2006
请问一下:
C语言中是不是不能写 int* p= new int(100)
这种写法?如果我想用指标在heap中配置一个内容为100,应该怎麽做?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.4.240
1F:推 ric2k1:"int* p = new int(100);" 没有问题呀! At least in C++... 10/23 11:20