Skip to content

Instantly share code, notes, and snippets.

View NickersF's full-sized avatar
🚀
Preparing to launch a great product.

Nicholas Fazzolari NickersF

🚀
Preparing to launch a great product.
  • Association of Oregon Counties
  • Portland Or
View GitHub Profile
@NickersF
NickersF / closeapp.cpp
Created November 25, 2015 06:59
C++ - Generic function which closes a win32 console application
// A generic function to close win32 console applications
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
using namespace std;
void closeApp();
@NickersF
NickersF / main.cpp
Last active January 10, 2016 08:20
CS162 Project 1: Full Program Source
// author: Nicholas Fazzolari
// project: Shopping budget tracker
// date: 1/6/2016
#include <iostream>
#include <iomanip>
using namespace std;
// this constant sets the _max_ number of array elements
@NickersF
NickersF / project2_menu_prototype.cpp
Created January 10, 2016 08:19
CS162 Project 2: Prototype of the menu for project 2
// Author: Nicholas Fazzolari
// Date: 1/9/16
// Assignment:
#include <iostream>
using namespace std;
// menu function (prototype)
void userMenu();
@NickersF
NickersF / seqSearch.cpp
Last active January 15, 2016 06:47
Basic linear search function in C++ (static array)
#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
#include <cmath>
#include <cstring>
using namespace std;
const int ARRAY_SIZE = 7;
@NickersF
NickersF / selectionSort.cpp
Created January 15, 2016 07:04
Basic selection sort function in C++
#include <iostream>
#include <iomanip>
#include <string>
#include <fstream>
#include <cmath>
#include <cstring>
using namespace std;
const int ARRAY_SIZE = 7;
@NickersF
NickersF / remove.cpp
Created January 24, 2016 01:03
C++ Remove Integer From Array
// this function removes a given element from the array in this program
bool remove(int val, int intList[], int& size) {
int index;
bool found = false;
for (int i = 0; i < size; i++) {
if (val == intList[i]) {
found = true;
index = i;
cout << "Value " << intList[i] << " found at index [ " << i << " ]" << endl;
@NickersF
NickersF / main.cpp
Last active January 27, 2016 07:17
General menu function:
// Nick Fazzolari
#include <iostream>
using namespace std;
void userMenu(char menuSelection);
void printMenu();
void baseUi();
// void baseUi({params for locals in main here});
@NickersF
NickersF / main.cpp
Created February 19, 2016 08:35
Linked List
#include <iostream>
using namespace std;
struct nodeType
{
int info;
nodeType *link;
};
nodeType* buildListForward();
@NickersF
NickersF / PlayList.h
Created February 22, 2016 03:46
header for the playlist class
// Author: Nicholas Fazzolari
// Project 4 - OOP Playlist (Dynamic Memory)
// Date: 2/16/16
// Sources: Book, cplusplus.com, stackexchange
#ifndef PLAY_LIST
#define PLAY_LIST
#include "songEntry.h"
@NickersF
NickersF / main.cpp
Created February 22, 2016 06:05
proj2 source
// Author: Nicholas Fazzolari
// Date: 1/22/16
// Assignment: Song data base application
// Sources: Text Book, cplusplus.com
#include <iostream>
#include <iomanip>
#include <cstring>
#include <fstream>