Test sourcecode dengan Qumana

Test sourcecode dengan Qumana

February 25, 2013 Wordpress 0

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum test test

[sourcecode language="objc"] 
@implementation Kalkulator
 - (int) tambah:(int)bil1 :(int)bil2 { 
  int x = bil1+bil2; 
  return x; 
} 
+ (int) kurang:(int)bil1 :(int)bil2{ 
  int x = bil1-bil2; 
  return x; 
} 
@end 
[/sourcecode]

Contoh source code:

[sourcecode language=”"objc"”] // // Calculator02AppDelegate.h #import @interface Calculator02AppDelegate : NSObject { NSWindow *window; NSComboBox *firstNumber; NSComboBox *secondNumber; NSTextField *resultNumber; } @property (assign) IBOutlet NSWindow *window; @property (assign) IBOutlet NSComboBox *firstNumber; @property (assign) IBOutlet NSComboBox *secondNumber; @property (assign) IBOutlet NSTextField *resultNumber; – (IBAction)calculate:(id)sender; @end [/sourcecode]

Powered by Qumana

Leave a Reply

Your email address will not be published. Required fields are marked *