[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: allocate 2d pointer. is ths a bug ?
From: |
h |
Subject: |
Re: allocate 2d pointer. is ths a bug ? |
Date: |
Thu, 10 Aug 2006 16:31:40 +0900 |
Thanks Mehturt.
but, it works through g++ on Cygwin and GNU/Linux machine without MS-VC++
6.0 on win32 machine.
i know i've attached code are has a problem.
okay, i wanna know exactly attached code are why looks working good in g++
only.
that's it.
Regards,
godmode2k at hotmail.com
from KLDP.org
<Mehturt@gmail.com> wrote in message
1155191346.461012.319730@75g2000cwc.googlegroups.com">news:1155191346.461012.319730@75g2000cwc.googlegroups.com...
>> 5 char** str;
>> 6
>> 7 str[0] = new char[5];
>> 8 str[1] = new char[5];
>> 9
>
> I believe the result is "undefined behavior", so the program might do
> anything it wants..
>