Skip to content

Instantly share code, notes, and snippets.

@darcyliu
Created June 4, 2014 08:48
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 darcyliu/7f9c97ac67483b461f3f to your computer and use it in GitHub Desktop.
Save darcyliu/7f9c97ac67483b461f3f to your computer and use it in GitHub Desktop.
Hello World for Swift and C
export PATH="/Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode6-Beta.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift hello.swift
clang world.c -oworld
println("Hello, world")
#include <stdio.h>
int main(){
printf("Hello World!\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment