Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Carl.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#include "Carl.h"
#include <iostream>


Carl::Carl() {
favoriteFood = "pizza";
};

string Carl::getFavoriteFood() {
return favoriteFood;
}

Carl::setFavoriteFood(string newFavoriteFood) {
cout <<"Error: Can't change favorite food. Pizza's still the best." << endl;
}
19 changes: 19 additions & 0 deletions Carl.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#ifndef CARL_H
#define CARL_H

#include <cstdlib>

using namespace std;

class Carl {
private:
string favoriteFood;

public:
Carl();
string getFavoriteFood();
setFavoriteFood(string newFavoriteFood);

};

#endif
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Dynamic Artificial Neural Network
Created by Jonathon Wong
Contributors: Rose Li, Adam Suban-Loewen, Andrew Pelegris, Michael Chiou
Contributors: Rose Li, Adam Suban-Loewen, Andrew Pelegris, Michael Chiou, Carl Lam (take2)
Date: 2013
*/

Expand Down