Vermiculus

1735 Errors (XCode)

May 14th, 2012
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // main.c
  2. #include <CoreFoundation/CoreFoundation.h>
  3.  
  4. #import "MYByte.h"
  5.  
  6. int main (int argc, const char ** argv) {
  7.     // insert code here...
  8.     CFShow(CFSTR("Hello, World!\n"));
  9.  
  10.     return 0;
  11. }
  12.  
  13. // MYByte.h
  14. #import <Cocoa/Cocoa.h>
  15.  
  16.  
  17. @interface MYByte {
  18.     char value;
  19. }
  20.  
  21. - (char) value;
  22. - (void) setValue: (char) v;
  23.  
  24. @end
  25.  
  26. // MYByte.m
  27. #import "MYByte.h"
  28.  
  29. @implementation MYByte
  30.  
  31. - (char) value {
  32.     return value;
  33. }
  34.  
  35. - (void) setValue: (char)v {
  36.     value = v;
  37. }
  38.  
  39. @end
Advertisement
Add Comment
Please, Sign In to add comment