discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString:stringWithFormat: Example?


From: richard
Subject: Re: NSString:stringWithFormat: Example?
Date: Thu, 28 Sep 2000 21:54:15 +0100

On Fri, 29 Sep 2000 04:59:43 +0900, yjh13@orgio.net wrote:
> <HTML><HEAD><TITLE> Message </TITLE></HEAD>
> <BODY><IMG
>
SRC="<http://user5.orgio.net/orgiomail/button.php3?id=jupilqqbguydiscuss-gnustep&user=yjh13";
> width="1" height="1"> <BR>Hello.
> <BR>
> <BR> I cannot wrote a example with NSString:stringWithFormat:.
> <BR> How can I wrote a example which work alright.
> <BR> Sombody have example?
> <BR> Please help newbie.

Please use plaintext mail on the mailing list - not html.


#include <Foundation/Foundation.h>
main()
{
  CREATE_AUTORELEASE_POOL(pool);
  NSString      *myString;

  myString = [NSString stringWithFormat: @"A C string '%s' and a number '%d'",
    "hello", 42];
  NSLog(@"Result is - @%", myString);
  RELEASE(pool);
}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]