Formatting Strings

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ken Williams

    Formatting Strings

    I feel silly asking this, but just looking at C# after using C/C++

    What do I now use instead of sprintf("%03d %-5s",int,string) ;

    To format strings, it's probably obvious, but I cannot see it.

    Ken



  • Sam Sungshik Kong

    #2
    Re: Formatting Strings

    Hi!

    System.Console. WriteLine("{0}, {1}", something, another);

    Sam
    "Ken Williams" <g3tmh@gb7abc.n et> wrote in message
    news:bh0iua$d3c $1@newsg3.svr.p ol.co.uk...[color=blue]
    > I feel silly asking this, but just looking at C# after using C/C++
    >
    > What do I now use instead of sprintf("%03d %-5s",int,string) ;
    >
    > To format strings, it's probably obvious, but I cannot see it.
    >
    > Ken
    >
    >
    >[/color]


    Comment

    Working...