Re: Variable array size allocation

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



C++ ok, C fail..... ><!!

Compiling...
test.c
\test.c(10) : error C2065: 'new' : undeclared identifier
\test.c(10) : warning C4047: 'initializing' : 'char *' differs in levels of
indirection from 'int '
\test.c(10) : error C2143: syntax error : missing ';' before 'type'
\test.c(10) : error C2143: syntax error : missing ';' before '['
\test.c(10) : warning C4091: ' ' : ignored on left of 'char ' when no
variable is declared
Error executing cl.exe.


"Nishant Sivakumar" <nish@xxxxxxxxxxxxxxxxxxxxxxx> ¼¶¼g©ó¶l¥ó·s»D:Oqbo1ntWFHA.2684@xxxxxxxxxxxxxxxxxxxxxxx
> Something like :-
>
> char* pData = new char[size];
>
> Note that you cannot do :- char Data[size]
>
> --
> Regards,
> Nish [VC++ MVP]
> http://www.voidnish.com
> http://blog.voidnish.com
>
>
> "boki" <bokiteam@xxxxxxxxxxxxxx> wrote in message
> news:OeRB88rWFHA.3864@xxxxxxxxxxxxxxxxxxxxxxx
>> Hi All,
>>
>> I need to declare variable array size.
>>
>> I will receive data, but I can't sure the data length.
>>
>> I need a array to save it.
>>
>> Best regards,
>> Boki.
>>
>>
>
>


.



Relevant Pages

  • No pools will be eligible strong performances.
    ... For Samuel the governor's grey, by means of me it's think, whereas ... regards a wrist too latin as usual her genetic tournament. ... qualification in Alhadin's participation might declare some profitable ... May did Doris execute the ...
    (sci.crypt)
  • Re: Opening web documents as "text"
    ... If I'm going to use SHDocVw, I will presumably need to write a "Declare ... Regards ... > Sub Demo() ... > Dim nFile As Integer ...
    (microsoft.public.excel.programming)
  • Re: All behavior about the keydown/keyup not work!
    ... Regards, Terry. ... >> I use C# to declare the IOleClientSite... ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • RE: Using multiple defines!
    ... //aGMI declared in header ... Best regards ... int FETCH( ... to declare everything at the top with define statements. ...
    (microsoft.public.vc.language)
  • Re: query criteria
    ... > As you can see you just declare the parameter as being the control on ... > Barry-Jon ...
    (microsoft.public.access.queries)