Skip to content

Instantly share code, notes, and snippets.

@charleshkang
Created June 27, 2015 20:43
Show Gist options
  • Save charleshkang/3f09ba270efc570fefe1 to your computer and use it in GitHub Desktop.
Save charleshkang/3f09ba270efc570fefe1 to your computer and use it in GitHub Desktop.
YOOOOO
//
// main.m
// ToDoList
//
// Created by Charles Kang on 6/27/15.
// Copyright (c) 2015 Charles Kang. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface toDoList: NSObject
-(void) enterUserList: (NSMutableArray * )userList;
-(NSArray *)userList;
-(void) manageList: (NSArray *)manList;
-(NSArray *)manList;
-(void) representList: (NSArray *)repList;
-(NSArray *)repList;
-(void) representItem: (NSString *)repItem;
-(NSString *)repItem;
@end
@implementation toDoList {
NSMutableArray *_userList;
NSArray *_manList;
NSArray *_repList;
NSString *_repItem;
}
-(void) enterUserList: (NSMutableArray *)userList {
_userList = userList;
}
-(void) manageList:(NSArray *)manList {
_manList = manList;
}
-(void) representList: (NSArray *)repList {
_repList = repList;
}
-(void) representItem: (NSString *)repItem {
_repItem = repItem;
}
@end
int main(int argc, const char * argv[]) {
@autoreleasepool {
NSString *chore1;
NSLog(@"Good morning, what are you going to do today?");
scanf("%s%*c", chore1);
}
NSLog(@"Great! Is there anything you want to do?");
scanf("%@%*c");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment