I'm just starting with C++, please bear with me here
I keep getting this error message and I can't seem to figure out what's missing... Its coming up with "collect2: error: ld returned 1 exit status"
Honestly I just need the thing to run so I can paint it on my door in real life. With a good conscience. I know, I'm weird.
Code:
#include <iostream>
#include <string>
using namespace std;
void manageType (string userType) {
// Manage type response.
if (userType == "1") {
cout << "Welcome home, Honey!" << endl;
} else if (userType == "<2>") { //
cout << "<Please insert cash or select credit card type." << endl;
} else if (userType == "<3>") { //
cout << "<Sup?" << endl;
} else if (userType == "<4>") { //
cout << "<Good luck, we're broke! By the way, the people next door have way better stuff." << endl;
} else if (userType == "<5>") { //
cout << "<Yay! Glad you're here!" << endl;
} else if (userType == "<6>") { //
cout << "<Look, I don't come to your door trying to sell you weed and talking about sex, do I?" << endl;
} else {
cout << "Wrong answer! GET LOST or, for you binary folk, 01100110 01110101 01100011 01101011 00100000 01101111 01100110 01100110" << endl;
}
return;
}
void humanType () {
// Resolve humanType.
string type;
cout << "Please enter the number that best corresponds with your identity or purpose." << endl;
cout << "1 Spouse, 2 Parent, 3 Friend, 4 Robber, 5 Delivery Guy, 6 Jehovas Witnesses" << endl; } //