Question
SOmeone plz help me sos this is due tomorrow I am making a mad lib (XCODE C++), and I keep getting the error use of
SOmeone plz help me sos this is due tomorrow
I am making a mad lib (XCODE C++), and I keep getting the error "use of undeclared identifier"
How do I fix this??????
#include
using namespace std;
int main(int argc, char *argv[])
{
/// declare the variables needed
string name, quest, favoriteColor;
/// collect the input
cout << "Hooray! Summer is finally here, and that means we can go to the beach!" << endl << endl;
cout << "Today, my family is going to CIty or Town Beach, and I can bring a friend with me." << endl
<< "I decide to invite my best friend female friend" << endl
<< "I know female friend will want to go with us. She thinks going to the beach is adjective!" < ;cout << "We start our beach day by watching the sunrise, and then eating breakfast at Uncle male's Pancake Hut." << endl << "I always get food (singular) flavored pancakes." << endl ;cout << "After breakfast we present tense verb the waves, go verb ending with -ing for seashells, and past tense verb a sandcastle." << endl << "Then we eat the lunch we packed for the beach. It's my favoritefood sandwiches" << endl << "The only time food sandwiches are not so adjective is when you drop them in the sand." << endl < ;cout << "By time, everyone's had enough of the beach." << endl << "But CIty or Town Beach is fun at night, too!" << endl << "There is a really adjective boardwalk." << endl << "It's always crowded with people." << endl << "Would you believe we saw your teacher there?" << endl ;cout << "There are a lot of cool shops on the boardwalk." << endl << "You can get a little hermit animal (singular)" << endl << "My favorite store is the jewelry store." << endl << "female friend and I each buy a rope bracelet that will present tense verb when it gets wet." << endl << "Pretty cool!" << endl ;cout << "By night, we are ready to go." < << "I can't wait to go to CIty or Town Beach again!" << endl; getline(cin, name); cout << "What is your City or Town?"; getline(cin, CityorTown); cout << "Who is your female friend?"; getline(cin, femalefriend); cout << "Put an adjective"; getline(cin, adjective); cout << "Put an adjective"; getline(cin, adjective); cout << "Name a male."; getline(cin, male); cout << "Name a food (singular)"; getline(cin, food); cout << "Put an adjective"; getline(cin, adjective); cout << "What time is it?"; getline(cin, time); cout << "Put an adjective"; getline(cin, adjective); cout << "Who is your teacher"; getline(cin, teacher); cout << "What is your favorite animal?"; getline(cin, animal); cout << "Put a present tense verb"; getline(cin, ptverb); cout << "Put an adjective"; getline(cin, adjective); /// Display the output cout << "Right, off you go" << endl << endl; // skip a line cout << "For the record, the computer picked up:" << endl << "[" << city << "] for city, " << endl << "[" << femalefriend << "] for femalefriend, " << endl << "[" << adjective << "] for adjective, and" << endl << "[" << make << "] for male, " << endl << "[" << food << "] for food, " << endl << "[" << time << "] for time, " << endl << "[" << teacher << "] for teacher, " << endl << "[" << animal << "] for animal, " << endl << "[" << ptverb << "] for ptverb" << endl << endl; /// return from the main() routine, and therefore end the entire program return 0; }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started