Just curious as to how this would work. This is what I have come up with so far.
Code:
#include <iostream>
using namespace std;
int main()
{
int dailysum,costofUpkeep,cash_made,weeklysum;
char timecheck[10];
cout <<"How often would you like to check your machines?" <<endl;
cin.getline(timecheck,10)
enum time {"daily","weekly","monthly","yearly"}
switch((!strcmp(time,timecheck))
{
case 0:
dailysum=costofUpkeep-cash_made;
cout <<dailysum;
break;
case 1:
weeklysum = (cash_made * 7)-costofUpkeep;
cout <<weeklysum;
}
}
Can't get this to work. THere are only 4 errors:
parse, syntax, and At Global