Guess .h language

This commit is contained in:
Joshua Peek
2011-05-27 14:57:11 -05:00
parent c73d45f9f9
commit 61bdd3deaf
12 changed files with 118 additions and 6 deletions
+8
View File
@@ -0,0 +1,8 @@
#import <Foundation/Foundation.h>
@interface Foo : NSObject {
}
@end
+6
View File
@@ -0,0 +1,6 @@
#import "Foo.h"
@implementation Foo
@end
+10
View File
@@ -0,0 +1,10 @@
#import <Cocoa/Cocoa.h>
@interface FooAppDelegate : NSObject <NSApplicationDelegate> {
@private
NSWindow *window;
}
@property (assign) IBOutlet NSWindow *window;
@end
+12
View File
@@ -0,0 +1,12 @@
#import "FooAppDelegate.h"
@implementation FooAppDelegate
@synthesize window;
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
// Insert code here to initialize your application
}
@end
+10
View File
@@ -0,0 +1,10 @@
class Bar
{
protected:
char *name;
public:
void hello();
}
+10
View File
@@ -0,0 +1,10 @@
class Bar
{
protected:
char *name;
public:
void hello();
}
+6
View File
@@ -0,0 +1,6 @@
#include <stdio.h>
void main()
{
printf("Hello World\n");
}
+8
View File
@@ -0,0 +1,8 @@
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World" << endl;
}
+6
View File
@@ -0,0 +1,6 @@
#ifndef HELLO_H
#define HELLO_H
void hello();
#endif
+7
View File
@@ -0,0 +1,7 @@
#import <Cocoa/Cocoa.h>
int main(int argc, char *argv[])
{
NSLog(@"Hello, World!\n");
return 0;
}