int main()
{ double gross(0), sales;
cout << "Enter the total gross sales for this week:";
cin >> gross;
cout << "Your total earnings for this week are:";
cin >> SalaryCalculator(sales);
}
salarycalculator.cpp(13): error C2678: binary '>>' : no operator found which takes a left-hand operand of type 'std::istream' (or there is no acceptable conversion)
I am using the correct operator for cin and I am calling my function so what is going on?