This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface MyList<T> { | |
void add(T element); | |
T get(int index); | |
} | |
class MyArrayList<T> implements MyList<T> { | |
private Object[] elements; | |
private int index; | |
MyArrayList() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contains() { | |
string="$1" | |
substring="$2" | |
if test "${string#*$substring}" != "$string" | |
then | |
return 0 | |
else | |
return 1 | |
fi | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//##using C++ library## | |
#include <iostream> | |
#include <stdio.h> | |
#include <stdlib.h> | |
using namespace std; | |
//##using openCV library## | |
#include "cv.h" | |
#include "highgui.h" | |
#include "cxcore.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//##using C++ library## | |
#include <iostream> | |
using namespace std; | |
#include <stdlib.h> | |
//##using openCV library## | |
#include "cv.h" | |
#include "highgui.h" | |
#include "cxcore.h" | |
using namespace cv; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#include <stdio.h> | |
#include "Detour\CDetour.h" | |
DWORD dwClientNode_SendChatAddress = 0x0082D560; | |
DWORD dwClientNode_ShowChatAddress = dwClientNode_SendChatAddress + 0x110; | |
PDWORD pClientNodeInstance; | |
CDetour ClientNode_SendChatDet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ESolver | |
{ | |
public delegate double operationFunction(double[] input); | |
private List<Operation> operationDeclerations; | |
private List<Variable> variables; | |
/// <summary> | |
/// Default constructor | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.*; | |
public class SocialSecurities | |
{ | |
public static void main (String args []) | |
{ | |
String ssnum; | |
Scanner sc = new Scanner(System.in); | |
while(true) | |
{ | |
System.out.print("Please enter your Social Security number, type quit or stop to exit"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Check to see if the strings contain the same number of characters | |
//For time purposes we assume that the strings only contain capital letters | |
bool hasSameCharacters(String string1, String string2) | |
{ | |
//Get the size of the strings once | |
int string1Size = string1.size(); | |
int string2Size = string2.size(); | |
//If the sizes are not equal than they | |
//do not contain the same characters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Controller | |
{ | |
public class ControllerAction | |
{ | |
public delegate void KeyPressedDelegateFunction(); | |
private String name; | |
private Key key; | |
private KeyPressedDelegateFunction keyPressedFunction; | |
public ControllerAction(Key key, String name, KeyPressedDelegateFunction function) |
NewerOlder