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: Izabela Sowula <izasow_at_yahoo.com>
Date: 26 Jul 2001 08:23:20 -0700
Message-ID: <61cb1b1e.0107260723.362f3a52@posting.google.com>

Pierre Charpenay <pierre.charpenay_at_unilog.fr> wrote in message news:<3B5C02D4.28EE9B11_at_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

Thanks for your time, I've fixed my problem. It was to do with an error in my own C code (shame on me)

Izabela Received on Thu Jul 26 2001 - 10:23:20 CDT

Original text of this message

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