Incerting space in concatinated string

From: Buster (msne09824_at_blueyonder.co.uk)
Date: 10/18/03

  • Next message: mhandis: "Re: Incerting space in concatinated string"
    Date: Sat, 18 Oct 2003 18:48:39 +0100
    
    

    Hi, im a programming newbie and am having a bit of a problem with a practice
    program im working on.

    I have declared 2 strings in my program which allow the user to enter the
    string value on execution through 2 dialog boxes.

    The problem in having is when i concatenate the 2 stings using the concat
    method e.g. message = string1.concat(string2);

    when i output message it will output something like HelloWorld. Does anyone
    have any suggestions on how to add a space between the 2 strings


  • Next message: mhandis: "Re: Incerting space in concatinated string"

    Relevant Pages

    • Re: Incerting space in concatinated string
      ... im a programming newbie and am having a bit of a problem with a practice ... > I have declared 2 strings in my program which allow the user to enter the ... > The problem in having is when i concatenate the 2 stings using the concat ... > when i output message it will output something like HelloWorld. ...
      (comp.lang.java.help)
    • Re: passing pointers [C]
      ... >I could malloc some space, concatenate the first two, malloc some more, ... >strings, do that malloc, and return a new string. ... Since you only call realloc, there is no way for old allocations not ...
      (alt.comp.lang.learn.c-cpp)
    • Re: Incerting space in concatinated string
      ... im a programming newbie and am having a bit of a problem with a practice ... > I have declared 2 strings in my program which allow the user to enter the ... > The problem in having is when i concatenate the 2 stings using the concat ... > when i output message it will output something like HelloWorld. ...
      (comp.lang.java)
    • Re: Incerting space in concatinated string
      ... im a programming newbie and am having a bit of a problem with a practice ... > I have declared 2 strings in my program which allow the user to enter the ... > The problem in having is when i concatenate the 2 stings using the concat ... > when i output message it will output something like HelloWorld. ...
      (comp.lang.java.programmer)
    • Re: was: Current Uses for Fortran ??
      ... > Strange because no other programming languages do it. ... > numbers and strings. ... I don't like + for concatenate since I believe that concatenate ... no deficiencies and the other way is to make it so complicated ...
      (comp.lang.fortran)