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

Pages: 1-4041-

K&R 2nd

Name: Anonymous 2011-10-13 23:11

reading K&R 2nd edition
get to end of chapter 1
doing exercises
one asks to parse a C program
they didn't even show me proper file handling yet


Why would they do this?

Name: Anonymous 2011-10-13 23:12

>>1

Maybe you have to do it with the write and read system calls.

Name: Anonymous 2011-10-14 0:06

You're suppose to read the file from stdin with getc. Then to run it from the command line you would do

$ ./program < file

You're not using windows or something are you?

Name: Anonymous 2011-10-14 1:06

>>3
`>2011
`>using windows
ISHYGDDT

Name: Anonymous 2011-10-14 3:51

>>4
NYUJMUA

Name: Anonymous 2011-10-14 8:04

K&R is shit. Dennis Ritchie was an idiot.

Name: Anonymous 2011-10-14 8:16

>>3
;_; yes i'm using windows

Name: Anonymous 2011-10-14 11:17

>>7
THen you don't belong here. Please return to /g/ forthwith.

Name: Anonymous 2011-10-15 20:31

>>3
You do realize you can do the exact same thing on Windows, right?

Why do idiots exist that think you can do things on Linux that you can't on Windows? Any useful feature or programs that were ever a part of Linux have been ported to Windows. Your precious GNU Software? All of it exists for Windows.

Name: Anonymous 2011-10-15 20:35

GNU can suck my cock, give me a BSD or Solaris.

Name: Anonymous 2011-10-15 21:03

2011
not knowing how to multiline quote

Name: Anonymous 2011-10-15 21:27

>>11
multi
line
quoting
is
overrated

Name: Anonymous 2011-10-15 22:00

K&R sucks shit and was written by a pair of faggot wanker shitheads

Name: Anonymous 2011-10-16 0:40

>>9
I never said you couldn't. It's just obvious that a Windows user would not think to read a file from stdin since few if any Windows programs work that way, whereas in *nix, most programs do. If you read >>7, you'll see I was right, so fuck you.

Also, GNU software is not precious to me. GNU is shit, Emacs is worse than shit, and Stallman is a fag who can suck my cock. busybox, BSD and Plan 9 are my weapons of choice. Enjoy your shitty Windows and go the fuck back to /g/, please.

Name: Anonymous 2011-10-16 0:45

>>13
Don't like C much, do you?

Name: Anonymous 2011-10-16 6:37

Do you have a source on those quotes, >>1-san?

Name: Anonymous 2012-01-22 19:00

gooooooooooooooooooooooo

Name: Anonymous 2012-01-22 19:28

>>1
Some of the solutions to the programming exercises are deep and profound.

Name: Anonymous 2012-01-22 19:36

>>14
Suck my dick. Windows is far more useful to human beings than any *nix shit.

Name: Anonymous 2012-01-22 19:38

>>19
how the dick do you program off windows? it's fukn unix, it's what you prog on

Name: Anonymous 2012-01-22 19:39

>>19
Go back to /g/

Name: Anonymous 2012-01-22 20:17

>>19
U MENA ``far more useful to virus writers and the PC security industry''

Name: Anonymous 2012-01-22 21:34

>>19
But *nix runs the intarwebz!

Name: Anonymous 2012-01-22 21:40

>>11-12
You
don't
need
[o]
to
multi-line
quote,
``faggots''.

Name: Anonymous 2012-01-22 22:07

>>24
Can
You
Do
This
Without
[o],
``faggot''?

Name: Anonymous 2012-01-22 22:55

>>25
No, and?

I'm
not
talking
about
this.

Name: Anonymous 2012-01-22 22:56

>>26
I know, I'm a failure.

Name: Anonymous 2012-01-22 23:02

>>26,27
Wow, you're such a failure!

Name: Anonymous 2012-01-23 0:26

>>20-23
*nix was designed for servers. Are you a server? If not, you shouldn't be using it. Anyone who uses it as a personal computer is just trying hard to seem intelligent. Real programmers understand it's easier to develop on Windows.

Name: Anonymous 2012-01-23 0:28

>>29
MS-DOS was designed for niggers. Are you a nigger? If not, you shouldn't be using it. Anyone who uses it as a personal computer is just trying hard to seem intelligent. Real programmers understand it's easier to develop on MacOS.

Name: Anonymous 2012-01-23 0:46

>>30
MacOS was designed for homosexuals. Are you a homosexual? If not, you shouldn't be using it. [...]

Name: Anonymous 2012-01-23 0:56

Linux was designed for programmers. Are you a programmer? If not, you shouldn't be using it. Anyone who uses it as a facebook box is just trying hard to seem intelligent. Real programmers understand it's easier to develop on Linux.

Name: Anonymous 2012-01-23 0:58

Dubs was designed for /prog/gers. Are you a /prog/ger? If not, you shouldn't be checking 'em. Anyone who uses it on an image board is just trying hard to seem intelligent. Real programmers understand it's easier to check 'em on /prog/.

Name: Anonymous 2012-01-23 1:06

>>5
Nine Yellow Undergraduate Japs, Moreover Utensil Ass?

Name: Anonymous 2012-01-23 7:13

>>33
The correct term is /prog/rider.

A pun both on "progrider" (since we do not progress much), and "rider" - you can easily imagine all of us racing in monocycles. Think about the SNES game Uniracers to get a good idea.

Name: Anonymous 2012-01-23 7:30

My Little Pony was designed for men. Are you a man? Of not, you shouldn't be watching it. Anyone little girl who watches it has too much testosterone in their system or they were raped by their father. Real men know its easier to get off o Twilight sparkle 34.

Name: Anonymous 2012-01-23 7:32

>>35
I've always understood it as a reference to the Shockwave Rider. It makes perfect sense. Monocycles are in fact command line utilities fine tuned for a more powerful browsing experience (hence riding).

Name: Anonymous 2012-01-23 8:19

>>35 I've always understood it as a reference to the Butt Rider. It makes perfect sense. Butts are in fact command line utilities fine tuned for a more powerful browsing experience (hence riding).

Name: Anonymous 2012-01-23 8:23

Parsing ANSI C is not incredibly difficult, a simple grammar is even provided in the standard itself.

Name: Anonymous 2012-01-23 16:34

`
>One faggot discovers how to multi-line quote without the overline tag
>LOL UR ALL DOIN IT WRONG MY WAY IS THE TRUE WAY

Name: Anonymous 2012-01-24 0:29

>>38
butt riding
awesome!

Name: Anonymous 2012-01-24 1:19

>>40
There's like 3 ways of doing it and I know them all.

Name: Anonymous 2012-01-24 1:20

>>39


typedef int QWE;
typedef float MER;
typedef char MA;
typedef MA**(*KEKEKE)(MER*(***)(QWE(****)(MER,MER,MER*,MER(**)(MER,MER*,QWE)),MA*(****************************************************************************************************)(MA*********************************,MA*),MA,MA,MA,MER),MER*******(*(*(*)(MA))(MA*(*)(MA)))(MA));

Name: Anonymous 2012-01-24 1:22

>>42
Oshiete sensei!

Name: Sensei 2012-01-24 2:28

>>44

Yon ju yon: yottsu no ju-on (呪怨).

Shi-shi: shinu shinu (死ぬ 死ぬ)

Sensei ga kowaaaaaai!

Name: Anonymous 2012-01-24 8:08

>>40
Back to the imageboards with you

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