Skip to content

Instantly share code, notes, and snippets.

@newshorts
Created April 4, 2014 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save newshorts/9966724 to your computer and use it in GitHub Desktop.
Save newshorts/9966724 to your computer and use it in GitHub Desktop.
Objective C application for determining if one of your 99 problems is a bitch?
//
// main.m
// NinetyNineProblems
//
// Created by Mike Newell on 4/3/14.
// Copyright (c) 2014 Mike Newell. All rights reserved.
//
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[])
{
@autoreleasepool {
int numberOfProblems = 99;
NSString *presenceOfBitch = @"ain't one!";
NSString *chorus = [NSString stringWithFormat:@"I've got %i problems but a bitch", numberOfProblems];
for (int i = 0; i < numberOfProblems; i++) {
int aBitch = 1;
if (i == aBitch) {
presenceOfBitch = @"is one!";
}
}
NSLog(@"%@ %@", chorus, presenceOfBitch);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment