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

Pages: 1-

C# problems...

Name: Anonymous 2006-09-21 0:36

I'm having problem with some beginner C# stuff. This is due tomorrow and I'm stumped. It Should work.. but isn't...

http://rafb.net/paste/results/81BY8z39.html

Name: Anonymous 2006-09-21 0:38

C# lols

Name: Anonymous 2006-09-21 0:39

meh... I don't see why it's not working...

Name: Anonymous 2006-09-21 0:42

i don't know c#, but here are some suggestions:

do you have to include or put another "using" statement for int to have those methods?

Name: Anonymous 2006-09-21 0:45

Not to my knowledge. Its underlining the { after doaddition, and also the very last } and the =, +, and ;s of the doaddition

Name: Anonymous 2006-09-21 1:46

public static int doAddition (int a, int b);

Bam! There's your problem right there. Kill that semicolon.

Name: Anonymous 2006-09-21 2:50

hahahahahahahahaha, doAddition function

Name: Anonymous 2006-09-21 10:54

Typical OO behaviour

Name: Anonymous 2006-09-21 12:05

[code]int doAddition (int a, int b);
{
    int c;
    c = a + b;
    return c;
}[code]

HAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA!!!!!!

Name: Anonymous 2006-09-21 17:47

hahahaha, i don't think your doAddition function is safe enough, try adding this:

int doDoAddition(int a, int b)
{
    int c;
    c = doAddition(a,b);
    return c;
}

Name: Anonymous 2006-09-21 19:55

>>10
Fool, you aren't generalizating enough!

int DoOperation(operationrealm realm, operationtype op, operandcollection c)

Name: Anonymous 2006-09-22 15:29

>>10
It's not thread-safe!!!

(define (doAddition a b)
  (+ a b))

Name: Anonymous 2006-09-22 15:29

>>11

I lol'd!

Name: Anonymous 2006-09-22 16:26

>>13
What?!!? That's not flexible enough! We need some enterprise!

object DoIt(object obj)

Name: Anonymous 2006-09-22 17:02

>>1-14
Script language users.

Name: Anonymous 2006-09-22 17:53

>>12
moar liek (define do-addition +)

Name: Anonymous 2006-09-22 18:14

>>16
I personally prefer:

(defmacro do-addition ()
  #'+)

Name: Anonymous 2006-09-22 18:46

>>16
>>17
Didn't get the joke.

Name: Anonymous 2006-09-22 19:07

subject.putitin(object)

Name: Anonymous 2006-09-23 7:27

>>18
didn't got the sarcasm of >>16 and >>17 (but you sadly can't if you're 12 years old)

Name: Anonymous 2009-01-14 13:20

SICP

Name: Anonymous 2009-02-25 7:57

The video When I   was 12 because   I have tuned.

Name: Anonymous 2009-08-03 8:01

Hi

Name: Anonymous 2009-08-03 8:01

i am 12 and what is this

Name: Anonymous 2009-08-03 8:02

Longcat is fairly long. I mean, he's the longest cat I've ever seen, but you know...there just might be a longer cat out there somewhere...I mean just maybe.

Name: Anonymous 2010-10-08 5:44

>>25
long long cat

Name: Anonymous 2011-02-03 0:14

Name: Sgt.Kabu괳╢kiman줒ꚮ 2012-05-28 20:11

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

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