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
int length = 100; //value of length can be determined at run-time | |
int *dyn = new int[length]; //new int[length] returns a pointer to | |
//first element of the array. | |
cout << "Using pointers:" << endl; | |
*dyn = 10; //dyn[0] and *dyn are equivalent! | |
*(dyn + 1) = 15; // *(dyn + 1) and dyn[1] are equivalent! |
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 <iostream> | |
#include <string> | |
using namespace std; | |
class passed | |
{ | |
char *str; |
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
#define _USE_MATH_DEFINES | |
#define L_TO_CU_FT 28.32 | |
#include <iostream> | |
#include <math.h> | |
#include <sstream> | |
using namespace std; | |
void getDimensions(double&, double&); |
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 <iostream> | |
using namespace std; | |
template <class E> | |
class LinkedList | |
{ | |
struct Node; | |
Node* first; |
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.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.OutputStreamWriter; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
import java.nio.CharBuffer; |
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
// define the Person Class | |
function Person(name) { | |
this.name = name; | |
this.hasSaidHello = false; | |
} | |
Person.prototype.walk = function(){ | |
alert ('I am walking!'); | |
}; | |
Person.prototype.sayHello = function(){ |
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
package com.smp.soundtouchandroid; | |
import android.os.AsyncTask; | |
import android.util.Log; | |
import com.smp.soundtouchandroid.*; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
public class SoundTouchRecorder |
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
// | |
// main.cpp | |
// intui | |
// | |
// Created by Steve Myers on 6/28/14. | |
// Copyright (c) 2014 ___SMP_PRODUCTIONS___. All rights reserved. | |
// | |
#include <iostream> | |
#include <list> |
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
Module Module1 | |
Dim GlobalWord As String | |
Class PersonType | |
Public Sub New() | |
SecretName = "hushhush" | |
End Sub | |
Public Property FirstName As String |
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
/* Javascript to emulate media queries with events and HTML class toggling | |
* to avoid duplication, conflict & waste when implemented via | |
* native CSS implementation + JS feature dependency. | |
* | |
* Depends on jQuery and Cowboy's throttle / debounce plugin: | |
* https://github.com/cowboy/jquery-throttle-debounce | |
*/ | |
(function(){ | |
var options = { |
OlderNewer