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

Name: Anonymous 2007-04-13 21:56 ID:lUVVwEoC

DEAR >>45, DID I HURT YOUR FEELINGS ?!!?!?!!1611ONEONEONESIXSIXONE
 
I THINK YOU DON'T UNDERSTAND THAT I WAS TROLLING.

What's funny with your post is that most C programmers I know are just too damn lazy to learn anything -beyond- C.
WHAT'S FUNNY WITH YOUR POST IS THAT MOST C++ PROGRAMMERS I KNOW ARE JUST TOO DAMN LAZY TO LEARN ANYTHING -BEYOND- cout AND cin.

Time to stop trolling now.

First of all even if it looked like I was generalizing, I was not. But theres a lot of people who program in C++ because they know that lots of games have been programmed in C++ and they pretend to program in C++ even though the only thing they know is cout and cin without any clue about what OO is and they don't stop talking shit about "THEIR NEXT MMORPG" I was talking about them. I know that most of C++ programmers are competant etc.

We all know you just learned about pointers last week but please, shut your mouth about it.
No, sir. BTW, I trolled about that because you said :
This isn't even mentioning how you C fags reinvent the wheel everytime you pass a structure pointer to a function, forgetting that classes in C++ could easily do that job for you and take away the unnecessary micro-management.
If you call that reinventing the wheel there's a problem, BTW WELCOME TO PROCEDURAL PROGRAMMING WHERE METHODS DON'T EXIST, SIR. IT'S AN OLD AND DIFFERENT WAY TO PROGRAM GET USED TO IT.
They just picked out the thinnest programming book at the store that they could find, read it a few times and spend the rest of their time telling programmers of other languages how great they are in comparison and jerking eachother off in their respective forums.
SAME THING WITH C++ PROGRAMMERS SIR
and that's because C programmers like to troll.

What's funny with your post is that most C programmers I know are just too damn lazy to learn anything -beyond- C.
It hurted my feelings, seriously, don't you think it's the same with C++ programmers ?
I didn't say that I don't program in C++ and I don't think I lack of knowledge in programming because I learned a lot "beyond" C

I still think what I said when I wrote >>44 but I explained my point this time.

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