#include <ctime>
using namespace std;
int main()
{
//Array processing
int info[5][2]; //Array with 10 elements
int amt, amto, amtt, amtr, amtv;
int x=0; //counter
int y; //number of elements in array
int value=0; //input value
int total=0; //total
float average; //average
int stop=0;
cout<<"\nThis program will calculate the average of up to 10 numbers\n";
while(value!=-1)
{
cout<<"Enter sales ID number: ";
cin>>value;
if (value=1)
{
cout<<"Enter sales amount: ";
cin>>amto;
)
else if (value=2)
{
cout<<"Enter sales amount: ";
cin>>amtt;
)
else if (value=3)
{
cout<<"Enter sales amount: ";
cin>>amtr;
)
else if (value=4)
{
cout<<"Enter sales amount: ";
cin>>amtf;
)
else if (value=5)
{
cout<<"Enter sales amount: ";
cin>>amtv;
}
}
There's more stuff after it, but this is what's important.
I keep getting these errors.
"27 expected primary-expression before ')' token "
"27 expected `;' before ')' token "
>>91
Don't hold your breath. It's surely possible but very ugly. On the other hand an Y combinator is more of a party trick than a real programmingg problem.
>>96
I know that but anyone saying that he uses it all the time rings my bell. I've had some use for that once or twice during the 15 years I've programmed. Maybe I just suck cocks.
Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy