last edited 2009/03/24 07:37 ( *) Question: How do I concatenate two strings together?
Answer by Objective-C:
NSString *string1 = @"Alpha";
NSString *string2 = @"Omega";
string1 = [string1 stringByAppendingString:string2];
Answer by Perl:
my $string1 = 'Alpha';
my $string2 = 'Beta';
$string1 .= $string2;
and now I ask you, what looks easier and more intuitive? Right, it's definitly Objective-C!
|