Skip to content

Instantly share code, notes, and snippets.

View allisons's full-sized avatar

Allison Sliter allisons

View GitHub Profile
// This is my prototype
static int powerFunc (int, int);
// This is the function
static int hashmap::powerFunc (const int x, const int y)
{
int result = 1;
class task
{
public:
task(char * taskName, char * courseName, char * dueDate);
virtual ~task(void);
task();
const char* getTask();
const char* getCourse();
//This is the Task List Manager Program
//Written by: Allison Sliter
//Date: 11, Oct 2009
#include <iostream>
#include <iomanip>
#include <cstring>
#include <fstream>
bool list::remove (const char * const name)
{
node * current = headByName;
node * previous = NULL;
cerr << "We're going to check if it enters the function at all";
if (NULL == current)
return 0;
while (current != NULL)
#include <iostream>
#include <iomanip>
#include <cstring>
#include <fstream>
#include <string.h>
#define OUTPUT_FILE "/Users/Kav/text.txt"
using namespace std;
const int ARRAY_SIZE = 1000;
#include <iostream>
#include <iomanip>
#include <cstring>
#include <fstream>
using namespace std;
int showTasksByDueDate;
int showTaskByCourse;
#include <iostream>
// enable Visual C++ memory leak checking
#ifdef _DEBUG
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
#define new DEBUG_NEW
#endif
//This is the Shopping Cart program
//Written by: Allison Sliter
//Date: 1st of October, 2009
// Sources: Malik, D.S. C++ Programming: from Problem Analysis to Project Design
#include <iostream>
#include <iomanip>
#include <string>
//This is the Library Database Search Program
//Written by: Allison Sliter
//Date: 11 of Aug, 2009
// Sources: Malik, D.S. C++ Programming: from Problem Analysis to Project Design, Ian Dees,
//INCLUDES CHOMP
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>