Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Why wont this compile?

Name: Anonymous 2007-04-12 8:54 ID:/L93LvWT

#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 "

Can anyone help me!?

Name: Anonymous 2007-04-13 18:07 ID:lUVVwEoC

That's what happen when you don't learn C and learn C++, you look retarded like >>1,13,18,23 they use C++ because they are too retarded to understand pointers correctly and most of them know less about OO than C programmers. The only reason why they want to learn C++ is BECAUSE THBT THAT HL2 WAS CODED IN C++ SO THEY DON'T KNOW A SHIT ABOUT PROGRAMMING BUT THEY WANT TO LEARN C++ BECAUSE THEY WANT TO BE A 1337 GAEM PROGRAMMERZZ AND THEN THEY EXPECT TO BE ABLE TO CODE HL3 AND THEN THEY ARE TOLD THAT C++ IS A SUPERSET OF C SO THEY THINK THAT C IS OLD AND USELESS TO LEARN EVEN THOUGH IT'S BETTER TO LEARN C TO UNDERSTAND POINTERS AND HOW TO NOT CODE LIKE A RETARDED DUDE AND UNDERSTAND WHY SOME THINGS ARE "CONSIDERED HARMFUL" BUT BECAUSE THEY LEARN C++ THEY DON'T UNDERSTAND SOME THINGS AND AFTER THEY HAVE LEARNED HOW TO USE cout AND cin THEY THINK THEY KNOW EVERYTHING BUT WHEN THEY WILL BE TALKING WITH NOT RETARDED C++ PROGRAMMERS THEY WILL GET FLAMED BECAUSE THEY PRETEND TO PROGRAM IN C++ EVEN THOUGH THEY DON'T KNOW A SHIT ABOUT OO.

That's exactly what a C++ programmer looks like http://dis.4chan.org/read/prog/1171073076

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List