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-14 14:50 ID:ilG0LhM0

Name: Anonymous 2007-04-14 14:52 ID:Heaven

>>81
I don't know if you've already noticed, but Alaska is on the list.

Name: Anonymous 2007-04-14 14:54 ID:K1dwZ0tN

Name: Anonymous 2007-04-14 15:04 ID:Heaven

>>79
>>81
And Alaska is still on the list!

Name: Anonymous 2007-04-14 15:08 ID:Heaven

OK U GYUZ R PSIN ME OF!!!!
http://programatica.cs.pdx.edu/House/

Name: Anonymous 2007-04-14 15:11 ID:Heaven

>>85
YHBT. And Alaska is still on the list. Fix it.

Name: Anonymous 2007-04-14 15:12 ID:ilG0LhM0

>>73
Points?  In *MY* language?  Not very likely.

ap id

Name: Anonymous 2007-04-14 15:16 ID:ilG0LhM0

lambdabot> pointless \ w (x, y) -> x + y * w
(`ap` snd) . (. fst) . flip ((.) . (+)) . (*)

Name: Anonymous 2007-04-14 15:20 ID:K1dwZ0tN

Optimize that brainfuck code

>>>>>>>>><<-++++++++++++++.-------[--->>><<++++--[++---<<>>]]

Name: Anonymous 2007-04-14 15:22 ID:K1dwZ0tN


>>>>+++-->>-->->++><<-++++-++++--++++++.-------[--->-->+++-><++<++++--[++---<<+--++++>-<+++++++->-->]]

Name: Anonymous 2007-04-14 15:27 ID:CK5pKzjY

Still waiting for a C/C++ implementation of Y.

Name: Anonymous 2007-04-14 15:30 ID:Heaven

>>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.

Name: Anonymous 2007-04-14 16:06 ID:CK5pKzjY

>>92
Uh, I use Y all the time.

Name: Anonymous 2007-04-14 16:12 ID:Heaven

>>93
You only write tutorials?

Name: Anonymous 2007-04-14 16:25 ID:CK5pKzjY

>>94
No, I'm an EXPERT PROGRAMMER who writes 200,000 LOC, scalable, enterprise-ready turnkey web 2.0 XML UML solutions in Java.

Name: Anonymous 2007-04-14 16:38 ID:CK5pKzjY

>>94
It's called anonymous recursion. It's pretty common, unless you're >>95. There's even a module... http://cvs.haskell.org/Hugs/pages/libraries/base/Control-Monad-Fix.html

Name: Anonymous 2007-04-14 16:45 ID:K1dwZ0tN

>>94
>>95
>>96

Same person

Name: Anonymous 2007-04-14 16:47 ID:Heaven

>>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.

Name: Anonymous 2007-04-14 17:12 ID:Heaven

>>96
Monads having fixed points with a 'knot-tying' semantics.

Using Y == taking the knot.

Name: Anonymous 2007-04-14 17:22 ID:CCHJWxso

100th POST BITCHES

Name: Anonymous 2007-04-14 17:30 ID:16/VO2gR

101 GET

Name: Anonymous 2007-04-14 17:48 ID:Im/S70hy

fucking fag!!

Name: Anonymous 2007-04-14 17:57 ID:K1dwZ0tN

$req = mysql_query('SELECT * FROM posts WHERE board=\'prog\' AND threadID=\'/L93LvWT\' ');

while($data = mysql_fetch_assoc($req))
{
echo($data['POST']);
}

One programming language, PHP. Thread over.

Name: Anonymous 2007-04-15 15:05 ID:JtGbHQmw

>>44
Listen to this.

Name: Anonymous 2007-04-15 18:40 ID:JhKFcjd3

>>44
I'm the guy who was arguing with you earlier but I thought you'd find this thread humorous: http://zip.4chan.org/g/res/303705.html

Name: Anonymous 2007-04-15 19:06 ID:JtGbHQmw

>>105
This has to be a joke.

Name: Anonymous 2007-04-16 15:35 ID:riWwL3wQ

I can do this in batch:

@echo off
echo Hello World!

Name: Anonymous 2007-04-16 18:35 ID:iwFhx3t2

>>107
I just puked in my mouth a little.

Name: Anonymous 2007-04-16 19:06 ID:WpthaoWS

>>108
My, my. You must be puking a whole lot in life.

Name: Anonymous 2007-04-17 8:11 ID:3BCcD0dS

>>109
Considering MSDOS is a now antiquated piece of software, no.

Name: Anonymous 2007-04-17 10:52 ID:r5Be1Eih

>>110
wait, so you dont do any shell programming at all?
after all, cmd.exe is window'es default shell.

( one would go for bash in *nix)

in before vbscript 'masters'

Name: Anonymous 2007-04-17 10:59 ID:gmbwqUD+

>>111
there is no shell programming on windows, simply because THE WINDOWS SHELL FUCKING SUCKS.
even I can write a better one, in my spare time.

Name: Anonymous 2007-04-17 13:34 ID:P61OSmeu

You guys fail at noticing a troll(>>107)

Name: Anonymous 2007-04-17 18:05 ID:uVQ7HXhO

>>112
I hate to bear bad news, but sh and all its descendants suck too.

Name: Anonymous 2009-01-14 14:03

VALID PERL CODE

Name: Anonymous 2009-08-16 23:30

Lain.

Name: Anonymous 2012-03-25 10:20

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

Name: Sgt.Kabu✕꟡kiman뢁ӓ 2012-05-29 0:12

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

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