Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: pro*c problem - strcat

Re: pro*c problem - strcat

From: Pierre Charpenay <pierre.charpenay_at_unilog.fr>
Date: Mon, 23 Jul 2001 12:56:20 +0200
Message-ID: <3B5C02D4.28EE9B11@unilog.fr>

Izabela Sowula a écrit :
>
> ...
>
> struct dicRecord
> {
>
> string key;
> string from;
> string where;
>
> } copyofdictionary[100];
>
> ...
> char g_from[82] = {"FROM PLANT"};
>
> ...
> strcat(g_from,",");

With C or C++, there's no problem with this syntax.

>
> or
>
> strcat(g_from,copyofdictionary[result].from);

Here, I'm not so sure, because you mixed "char tpye" and "string class". I'm not a specialist of C++, but it seems that with string class you must use s1.append(s2) to concatenate s2 to s1.

Is it true or not ?

>
> ...
>
> Izabela
 

-- 
 Pierre CHARPENAY
Received on Mon Jul 23 2001 - 05:56:20 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US