Hello all experienced more than me people! I have a very urgent favor to ask of you all. I have an intro to C++ class online and I am doing a project, which is very confusing. It is about functions and for some reason, the class program or XCode doesn't want to seem to wanna build some obvious things. For example, here is a very very basic version of my program (without anything related to functions at all, I like to build from the ground up ):
I get a build error on the first "cin >>" line!!! WTF? It's never done this before and I have no clue what it is. But like I always say, two sets of eyes are better than one. Obviously, I'm missing something . . . Any suggestions? And please, I deserve to be called a n00b for this one prolly so feel free.
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
double breakfast = 5.50;
double bDiscount = .10;
double quanBreak = 10;
double discountAmt, subTotal, totalOne, breakfastTotal;
int breakfastMeals;
cout << "Enter the number of Breakfast Meals ordered: ";
cin >> breakfastMeals >> endl;
totalOne = breakfastMeals * breakfast;
if (breakfastMeals >= quanBreak);
discountAmt = totalOne / bDiscount;
subTotal = totalOne - discountAmt;
breakfastTotal = subtotal * .10;
else
breakfastTotal = totalOne * .10;
cout << "Your Total Is: " << breakfastTotal << endl;
return 0;
}
I get a build error on the first "cin >>" line!!! WTF? It's never done this before and I have no clue what it is. But like I always say, two sets of eyes are better than one. Obviously, I'm missing something . . . Any suggestions? And please, I deserve to be called a n00b for this one prolly so feel free.