diff --git a/Carl.cpp b/Carl.cpp new file mode 100644 index 0000000..ef3cc04 --- /dev/null +++ b/Carl.cpp @@ -0,0 +1,15 @@ +#include "Carl.h" +#include + + +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; +} diff --git a/Carl.h b/Carl.h new file mode 100644 index 0000000..c4c7cad --- /dev/null +++ b/Carl.h @@ -0,0 +1,19 @@ +#ifndef CARL_H +#define CARL_H + +#include + +using namespace std; + +class Carl { + private: + string favoriteFood; + + public: + Carl(); + string getFavoriteFood(); + setFavoriteFood(string newFavoriteFood); + +}; + +#endif diff --git a/main.cpp b/main.cpp index 266995c..500ed31 100644 --- a/main.cpp +++ b/main.cpp @@ -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 */