Re: a simple task for Simula based languages
Re: a simple task for Simula based languages
- Subject: Re: a simple task for Simula based languages
- From: John Stiles <email@hidden>
- Date: Sat, 17 Nov 2007 07:36:09 -0800
If you change "char" to "char*" in your code snippet below, this
would work as written.
This seems like you just need to learn how C works. This isn't an
Objective-C issue at all.
On Nov 17, 2007, at 1:15 AM, Vlad Alexa wrote:
//consider this code for a repetitive task 3 time here but it
could be 30 times
dostufffor("This");
dostufffor("and");
dostufffor("other");
dostufffor("That");
dostufffor("and");
dostufffor("another");
dostufffor("Those");
dostufffor("and");
dostufffor("others");
//for a number of obvious reasons one would want to rewrite the
code as below
mystuff ("This","and","other");
mystuff ("That","and","another");
mystuff ("Those","and","others");
void mystuff (char First, char Second, char Third)
{
dostufffor(First);
dostufffor(Second);
dostufffor(Third);
}
//the question is , what is the best way to do this objective c ?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
40blizzard.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden