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

First homework of new year!!

Name: Anonymous 2010-01-01 23:19

Let X be an integer.

1) Read in integer X from standard input
3) Let Y be X multiplied by 2
4) output "SUSSMAN!!!!!!" Y times

Name: Anonymous 2010-01-02 22:48

write an IRC bot that pretends to be a real person

Name: Anonymous 2010-01-03 0:14


int foo; scanf("%d", &foo);
while (foo --> 0) {
    printf("SUSSMAN!\n");
}

Name: Anonymous 2010-01-03 0:20

>>42
-->
The C Arrow Operator

Name: Anonymous 2010-01-03 0:24

>>43
It's the "goes to" operator according to the ANSI standard.

Name: Anonymous 2010-01-03 2:06

(loop repeat (* 2 (read)) do (print "SUSSMAN!!!!!!"))

Name: Anonymous 2010-01-03 7:20

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

Name: Anonymous 2010-01-03 8:01

Name: Anonymous 2010-01-03 19:03

for i = 1, io.read() * 2 do print"Sussman" end

Name: Anonymous 2010-01-03 19:06

>>47
I thought it was sort of funny.

Name: Anonymous 2010-01-03 22:51


x = gets.chomp.to_i
y = x * 2
y.times { puts "SUSSMAN!!!!!!" }


I get bonus points for following directions.

Name: Anonymous 2010-01-04 1:09

>>46
very nice

Name: Anonymous 2010-01-04 1:31

>>51
Why, thank you.

Name: Anonymous 2010-01-04 1:50

Why do all your homeworks involve printing sussmen?

Name: Anonymous 2010-01-04 9:00

>>53
I think this guy's onto us.

Name: Anonymous 2010-01-04 9:07

>>53
That's not true, sometimes we print Ablesons and Cudders

Name: Anonymous 2010-01-04 10:09

>>53
if you got a better idea why dont you share it with us?

Name: Anonymous 2010-01-04 10:52

>>56
Print FrozenVoids

Name: HAXUS THE CAMELFUCKER 2010-01-04 11:16

>>57
I beg to disagree.

Name: Anonymous 2010-01-04 11:26

>>58
that's no beg. you've got to put some beg into it

Name: Anonymous 2010-01-04 11:47

I DEMAND TO DISAGREE!!

Name: Anonymous 2010-01-04 12:33

>>1
1. Where's 2)?
2. Now you have two problems.

Name: Anonymous 2010-01-05 8:58

>>60
We do not negotiate with Sepples terrorists.

Name: Anonymous 2010-01-05 18:25

>>62
NEGOTIATE MY ANUS

Name: Anonymous 2010-01-05 18:29

>>63
ONLY IF YOU NEGOTIATE MINE

Name: HAXUS THE PANHANDLER 2010-01-05 18:35

>>59
Hey, kid, you got a minute? You wanna know how I got this scar? I got this in Vietnam, kid, in the shit. We used to throw captives' families out of helicopters to make them talk. Horrible, kid, but they made us do it. You wouldn't believe. Anyway, once they wanted me to throw out a little kid. A little kid! It was horrible, I couldn't do it. But then the little fucker slashed at me with a knife. Say, kid, you got any differing opinions for this starving veteran? I need to disagree, kid. I gotta disagree!

Name: Anonymous 2010-01-05 22:34

//Standard C++

#include <iostream>

int main()
{
 int x, y;
 
 cin >> x;

 y = x * 2;

 for( int i = 0; i <= y; ++i )
     cout << "SUSSMAN!" << endl;

return 0;
}

Name: Anonymous 2010-01-05 22:41

>>65
They made you use Sepples in Vietnam? I'd have scars too. I weep for your losses.

Name: Anonymous 2010-01-06 5:47

#!C:\xampp\php\php.exe -q
<?php
isset($_SERVER['argv'][1]) ?
    $max = $_SERVER['argv'][1] * 2 :
    $max = 0;
for($i = 0; $i < $max; ++$i)
    echo "Sussman!!!!!!\r\n";
?>

Name: Anonymous 2010-01-06 6:09

oh, hurrdurr
1) Read in integer X from standard input
standard input

#!C:\xampp\php\php.exe -q
<?php
fwrite(STDOUT, "Enter >0 to Suss, 0 to quit\r\n");
do {
    fscanf(STDIN, "%d\n", $max);
    $max *= 2;
    for($i = 0; $i < $max; ++$i)
       fwrite(STDOUT, "Sussman!!!!!!\r\n");
} while ($max != 0)
?>

Name: dasuraga !8GgBtN/zr. 2010-01-06 13:02

>>66
how  are you not even able to make a for loop  run the right number of times?
FENCEPOST ERRORS, PEOPLE! DON'T DO THEM!

Name: Anonymous 2010-01-06 13:21

>>70
Not to mention not doing
std::cin

Name: Anonymous 2010-01-06 13:22

#define as while
printf("Requested number of Sussmen: ");
int x;
x = scanf("%d", &x);
printf("\n");
int y = x << 1;
as (y --> 0)
    printf("%s\n", "SUSSMAN!!!!!!");

Name: Anonymous 2010-01-06 13:41

>>71
Not to mention Sepples.

Name: Anonymous 2010-01-06 14:00

(y --> 0) is the goes to operator

Name: Anonymous 2010-01-06 14:27

>>74
You're wrong, the operator is just -->.

Name: Anonymous 2010-01-06 15:13

>>74
Excuse me kudasai, but goto is the goes to operator.

Name: Anonymous 2010-01-06 15:18

Excuse me kudasai
(ಠ‿ʘ) < lol wut

Name: Anonymous 2010-01-06 15:23

>>77
Excuse me kudasai.

Name: Anonymous 2010-01-06 15:25

>>78
Sageru kudasai.

Name: Anonymous 2010-01-06 15:31

>>79
Sagete kudasai.

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