This should be what your looking for :
char *strcat(char *str1, const char *str2);
>From: "Joost van Rooij" <jo...@va...>
>To: dev...@li...
>Subject: [Dev-C++] working with strings
>Date: Fri, 11 Jan 2002 08:27:38 +0100 (CET)
>MIME-Version: 1.0
>Received: from [207.46.181.45] by hotmail.com (3.2) with ESMTP id
>MHotMailBE07DC5000934004215CCF2EB52D087317; Thu, 10 Jan 2002 23:16:53 -0800
>Received: from usw-sf-list1.sourceforge.net ([216.136.171.252]) by
>cpimssmtpa21.msn.com with Microsoft SMTPSVC(5.0.2195.4617); Thu, 10 Jan
>2002 23:14:51 -0800
>Received: from localhost ([127.0.0.1] helo=usw-sf-list1.sourceforge.net)by
>usw-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian))id
>16Ovu2-0002du-00; Thu, 10 Jan 2002 23:15:02 -0800
>Received: from c72123.upc-c.chello.nl ([212.187.72.123]
>helo=penguin.vanrooij.net)by usw-sf-list1.sourceforge.net with esmtp (Exim
>3.31-VA-mm2 #1 (Debian))id 16Ovt8-0002JX-00for
><dev...@li...>; Thu, 10 Jan 2002 23:14:07 -0800
>Received: from vanrooij.net (localhost [127.0.0.1])by penguin.vanrooij.net
>(Postfix on SuSE Linux 7.2 (i386)) with SMTP id 316239C2Efor
><dev...@li...>; Fri, 11 Jan 2002 08:27:38 +0100
>(CET)
>Received: from 213.53.92.194 (SquirrelMail authenticated user joost)
> by penguin.vanrooij.net with HTTP; Fri, 11 Jan 2002 08:27:38
>+0100 (CET)
>From dev...@li... Thu, 10 Jan 2002 23:17:18
>-0800
>Message-ID: <321...@pe...>
>X-Mailer: SquirrelMail (version 1.0.6)
>Sender: dev...@li...
>Errors-To: dev...@li...
>X-BeenThere: dev...@li...
>X-Mailman-Version: 2.0.5
>Precedence: bulk
>List-Help:
><mailto:dev...@li...?subject=help>
>List-Post: <mailto:dev...@li...>
>List-Subscribe:
><https://lists.sourceforge.net/lists/listinfo/dev-cpp-users>,<mailto:dev...@li...?subject=subscribe>
>List-Id: Dev-C++ users mailing list <dev-cpp-users.lists.sourceforge.net>
>List-Unsubscribe:
><https://lists.sourceforge.net/lists/listinfo/dev-cpp-users>,<mailto:dev...@li...?subject=unsubscribe>
>List-Archive: <http://www.geocrawler.com/redir-sf.php3?list=dev-cpp-users>
>X-Original-Date: Fri, 11 Jan 2002 08:27:38 +0100 (CET)
>Return-Path: dev...@li...
>X-OriginalArrivalTime: 11 Jan 2002 07:14:51.0548 (UTC)
>FILETIME=[A94C45C0:01C19A6F]
>
>Hi,
>
>I am a c++ newbie and I am trying to put to strings together but I can't
>seem to figure out how to do it. My previous coding experience is in PHP
>where I found this very easy to do...
>
>I would like to do something like this
>
>char firstname [15];
>char lastname [20];
>char fullname [35] = (firstname+lastname);
>
>...But that obviously won't work! Can somebody show me how to do such a
>thing?
>
>
>
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
|