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
#pragma once | |
#include<string> | |
#include"my_vect.h" | |
using namespace std; | |
template <typename ItemType> | |
class AVLTreeSet { | |
friend class Node; |
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
#pragma once | |
#include<string> | |
#include"my_vect.h" | |
using namespace std; | |
template <typename ItemType> | |
class AVLTreeSet { | |
friend class Node; |
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
#pragma once | |
#include<string> | |
#include"LinkedArrayList_3_passoff.h" | |
using namespace std; | |
template <typename ItemType> | |
class AVLTreeSet { | |
friend class Node; |
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
#pragma once | |
#include<string> | |
#include"LinkedArrayList_3_passoff.h" | |
using namespace std; | |
template <typename ItemType> | |
class AVLTreeSet { | |
friend class Node; |
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 get_h(Node* n){ | |
if(n == NULL){ | |
return 0; | |
} | |
else{ | |
return n->height; | |
} | |
} | |
void set_h(Node* n){ |
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
<?php | |
?> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
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
#pragma once | |
#include"LinkedArrayListFromSix.h" | |
#include<string> | |
using namespace std; | |
int doHash(const string& s, int tableSize){ | |
unsigned hashCode = 0; | |
for (unsigned i = 0; i < s.length(); i++){ | |
cout << "hash code in for loop: " << hashCode << endl; |
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
#pragma once | |
#include<string> | |
#include<fstream> | |
#include<sstream> | |
using namespace std; | |
template <typename ItemType> | |
class LinkedArrayList { |
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
/* Detects patterns of knocks and triggers a motor to unlock | |
it if the pattern is correct. | |
By Steve Hoefer http://grathio.com | |
Version 0.1.10.20.10 | |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 | |
http://creativecommons.org/licenses/by-nc-sa/3.0/us/ | |
(In short: Do what you want, just be sure to include this line and the four above it, and don't sell it or use it in anything you sell without contacting me.) | |
Analog Pin 0: Piezo speaker (connected to ground with 1M pulldown resistor) |
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
<script> | |
function calculateGrade(){ | |
for(i=0; i < row_count; i++){ | |
var score_gen = 'score' + (i+1); | |
score = document.getElementById(score_gen).value * .01; | |
var percent_gen = 'percent' + (i+1); | |
percent_of_final = document.getElementById(percent_gen).value; | |
grade_index_temp = score * percent_of_final; | |
grade_index_100 += percent_of_final; | |
grade_index_total += grade_index_temp; |