Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:bool *flag =new bool(m+1);这个开空间的怎么就和别的不一样????In Reply To:bool *flag =new bool(m+1);这个开空间的怎么就和别的不一样???? Posted by:baicaited at 2009-05-16 14:15:28 memset(flag, false, sizeof(bool) * (m+1));这个size是4*(m+1),应该是1*(m+1)才对,bool*是4byte,bool是1byte Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator