First homework of new year!!
1
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
41
Name:
Anonymous
2010-01-02 22:48
write an IRC bot that pretends to be a real person
42
Name:
Anonymous
2010-01-03 0:14
int foo; scanf("%d", &foo);
while (foo --> 0) {
printf("SUSSMAN!\n");
}
43
Name:
Anonymous
2010-01-03 0:20
>>42
-->
The C Arrow Operator
44
Name:
Anonymous
2010-01-03 0:24
>>43
It's the "goes to" operator according to the ANSI standard.
45
Name:
Anonymous
2010-01-03 2:06
(loop repeat (* 2 (read)) do (print "SUSSMAN!!!!!!"))
46
Name:
Anonymous
2010-01-03 7:20
+++++++[>++++++++++++<-]>-[>+>+>+>+>+>+>+<<<<<<<-]>>++>
>>------ >------------------>----->>++++[<++++++++>-]<+>++++++++++>,>++++++[<-------->-]<[>++<-]>[<<<<<<<<<<.>.>.>.>.>.>.>.....>.
>>- ]
47
Name:
Anonymous
2010-01-03 8:01
48
Name:
Anonymous
2010-01-03 19:03
for i = 1, io.read() * 2 do print"Sussman" end
49
Name:
Anonymous
2010-01-03 19:06
>>47
I thought it was sort of funny.
50
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.
51
Name:
Anonymous
2010-01-04 1:09
52
Name:
Anonymous
2010-01-04 1:31
53
Name:
Anonymous
2010-01-04 1:50
Why do all your homeworks involve printing sussmen?
54
Name:
Anonymous
2010-01-04 9:00
>>53
I think this guy's onto us.
55
Name:
Anonymous
2010-01-04 9:07
>>53
That's not true, sometimes we print Ablesons and Cudders
56
Name:
Anonymous
2010-01-04 10:09
>>53
if you got a better idea why dont you share it with us?
57
Name:
Anonymous
2010-01-04 10:52
58
Name:
HAXUS THE CAMELFUCKER
2010-01-04 11:16
59
Name:
Anonymous
2010-01-04 11:26
>>58
that's no beg. you've got to put some beg into it
60
Name:
Anonymous
2010-01-04 11:47
I DEMAND TO DISAGREE!!
61
Name:
Anonymous
2010-01-04 12:33
>>1
1. Where's
2) ?
2.
Now you have two problems.
62
Name:
Anonymous
2010-01-05 8:58
>>60
We do not negotiate with
Sepples terrorists.
63
Name:
Anonymous
2010-01-05 18:25
64
Name:
Anonymous
2010-01-05 18:29
>>63
ONLY IF YOU NEGOTIATE MINE
65
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!
66
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;
}
67
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.
68
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";
?>
69
Name:
Anonymous
2010-01-06 6:09
oh, hurr durr
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)
?>
70
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!
71
Name:
Anonymous
2010-01-06 13:21
>>70
Not to mention not doing
std::cin
72
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!!!!!!");
73
Name:
Anonymous
2010-01-06 13:41
>>71
Not to mention Sepples.
74
Name:
Anonymous
2010-01-06 14:00
(y --> 0) is the goes to operator
75
Name:
Anonymous
2010-01-06 14:27
>>74
You're wrong, the operator is just
--> .
76
Name:
Anonymous
2010-01-06 15:13
>>74
Excuse me kudasai, but
goto is the goes to operator.
77
Name:
Anonymous
2010-01-06 15:18
Excuse me kudasai
(ಠ‿ʘ) < lol wut
78
Name:
Anonymous
2010-01-06 15:23
79
Name:
Anonymous
2010-01-06 15:25
80
Name:
Anonymous
2010-01-06 15:31
Newer Posts