Skip to content

Instantly share code, notes, and snippets.

View rhysforyou's full-sized avatar

Rhys Powell rhysforyou

View GitHub Profile
#include <iostream>
using namespace std;
int main()
{
int num1, num2, num3 , num4, num5;
bool sorted = true;
do {
if num1 > num2 {
diff --git a/functions.cpp b/functions.cpp
index 7c53868..a4cb553 100644
--- a/functions.cpp
+++ b/functions.cpp
@@ -1,10 +1,10 @@
-#include "functions.h"
+#include "function.h"
#include <fstream>
using namespace std;
#include <iostream>
using namespace std;
struct car {
char make [20];
char model [20];
int year;
int price;
};
#include <iostream>
#include "function.h"
#include <fstream>
#include <cstdlib>
using namespace std;
bool loadmap ( int &xcoord, int &ycoord , int gamemap[ROWS][COLUM])
{
/*
Name: Anthony Burchell-Bailey
Lab: 8:30-10:30 17-106
Modifcation Date: //2012
File Description: Lab week 12 task 5
*/
#include <iostream>
using namespace std;
@interface rjhccViewController : UIViewController{
IBOutlet UIImageView *testcontainer;
IBOutlet UILabel *heightS;
IBOutlet UILabel *widthS;
}
@end
@implementation rjhccViewController
@rhysforyou
rhysforyou / gist:4417106
Last active December 10, 2015 09:49 — forked from statico/gist:3172711
A step-by-step guide on using a PS3 controller with OS X

How to use a PS3 controller on Mac OS X 10.8 (Mountain Lion)

  1. Open Apple menu → System Preferences → Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.

  2. Reset PS3 controller by inserting paperclip into pinhole near L2 button.

  3. Connect PS3 controller to Mac with USB cable.

  4. Enable Bluetooth.

@rhysforyou
rhysforyou / Agent.cpp
Last active December 15, 2015 11:19 — forked from anonymous/Agent.cpp
#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
#include "Agent.h"
using namespace std;
int Agent:: size = 0;
@rhysforyou
rhysforyou / main.cpp
Last active December 15, 2015 17:29 — forked from anonymous/main.cpp
/**********************************************************************
* linkedlist.cpp - CSCI212 - Ass1 - Contains LinkedList class definition
* Anthony Burchell-Bailey - 4245490 - /4/2013
**********************************************************************/
#include <iostream>
#include <cstddef>
#include <string>
#include "linkedlist.h"
#include <iomanip>
/**********************************************************************
* linkedlist.cpp - CSCI212 - Ass1 - Contains LinkedList class definition
* Anthony Burchell-Bailey - 4245490 - /4/2013
**********************************************************************/
#include <iostream>
#include <cstddef>
#include <string>
#include "linkedlist.h"
#include <iomanip>