Skip to content

Instantly share code, notes, and snippets.

Avatar
🙂

German Hoyos GermanHoyos

🙂
View GitHub Profile
@GermanHoyos
GermanHoyos / UnitCircle.js
Created Feb 22, 2022
Starter code for displaying a unit circle in html canvas
View UnitCircle.js
console.log("Base_Unit_Circle");
var canvas = document.querySelector("canvas");
var c = canvas.getContext('2d');
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
let up = false;
let down = false;
let left = false;
@GermanHoyos
GermanHoyos / DynamicArrays.cpp
Created Jan 13, 2022
Use a dynamic array to sort information in C++
View DynamicArrays.cpp
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
using namespace std;
@GermanHoyos
GermanHoyos / ReArrangeScores.cpp
Created Jan 13, 2022
Use arrays to re arrange scores highest to lowest in C++
View ReArrangeScores.cpp
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
#include <sstream>
@GermanHoyos
GermanHoyos / ScoreGrades.cpp
Created Jan 13, 2022
Program to grade scores from a file C++
View ScoreGrades.cpp
#include <iostream>
#include <string>
#include <fstream>
#include <iomanip>
using namespace std;
@GermanHoyos
GermanHoyos / RemoveVowels(STAR).cpp
Created Jan 13, 2022
Remove vowels from strings in C++
View RemoveVowels(STAR).cpp
#include <iostream>
#include <string>
using namespace std;
string usrInp;
string scan;
string newStr;
string transfer;
@GermanHoyos
GermanHoyos / ArcMath.cpp
Created Jan 13, 2022
Program to find diameter / area / circumfrance - of a circle in C++
View ArcMath.cpp
#include <iostream>
#include <string>
#include <iomanip>
#include <fstream>
#include <cmath>
@GermanHoyos
GermanHoyos / FindVowels.cpp
Created Jan 13, 2022
Program to find all vowels in a string C++
View FindVowels.cpp
#include <iostream>
#include <string>
using namespace std;
bool isVowel(char range);
int main() {
string usrInpt;
@GermanHoyos
GermanHoyos / TypeCasting.cpp
Created Jan 13, 2022
Type Casting Example in C++
View TypeCasting.cpp
#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
int main() {
int num;
@GermanHoyos
GermanHoyos / ifstream.cpp
Created Jan 13, 2022
Working with File IO in C++
View ifstream.cpp
//File I/O in 5 steps
#include <iostream>
#include <string>
#include <fstream> //Step 1)Include the header file fstream in the program.
#include <iomanip>
using namespace std;
View trace.txt
** Invoke db:reset (first_time)
** Invoke db:drop (first_time)
** Invoke db:load_config (first_time)
** Execute db:load_config
** Invoke db:check_protected_environments (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config
** Execute db:check_protected_environments
** Execute db:drop