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

Pages: 1-

C programming

Name: Motherfucking !xHGARYoak6 2010-01-03 0:14

Can you send me all the info, including compilers, what program i should write C in, and books/webpages that will teach me how to program in C?

Thanks for your help.

Name: Ctard 2010-01-03 0:27

Get "The C Programming Language" by K&R.  If you must use a different book, choose from the list here: http://www.iso-9899.info/wiki/Books .  Be very wary of online tutorials because the Internet is filled with misinformation and idiots writing code that they don't even understand themselves; learning from the Internet is a very bad idea when it comes to C.  People in ##C on irc.freenode.net will also help you.

As for compilers, use gcc.  If you're developing in a Windows environment, use the MinGW port of gcc.

Name: Ctard 2010-01-03 0:34

Here are the specification documents (actually the drafts) for the C standard.  You won't want to try learning C from them, but you may eventually want to use them as a reference to answer questions you have about what C allows.  Or not.

C89: http://flash-gordon.me.uk/ansi.c.txt
C99: http://open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf

Other things you might like:
Quick C library reference:
http://www.acm.uiuc.edu/webmonkeys/book/c_guide/

Network programming:
http://beej.us/guide/bgnet/

http://codepad.org/

Name: Anonymous 2010-01-03 0:53

>>2
>>3
DON'T HELP HIM!!!

Name: Anonymous 2010-01-03 0:54

>>2
>People in ##C on irc.freenode.net will also help you.
Except for Zhivago. He's an asshole.

Name: Anonymous 2010-01-03 0:57

>>5
He can be rude to people, but he understands C x100 better than anyone else in that channel, is obviously the smartest, and when he is actually around he usually does a faster & more thorough job of assessing someone's problem than anybody else.

And much of the time he's an asshole because the person he is talking to is dumb as hell.  It can be pretty funny when somebody comes in there with a question like "how i maed game in C???" (and they aren't trolling but really are too fucking stupid to figure anything out on their own -- we've had threads by such people on /prog/ before I'm sure)

tldr;  ask intelligent questions and you'll be fine

Name: Anonymous 2010-01-03 1:33

Reply to >>6

>he understands C x100 better than anyone else in that channel, is obviously the smartest
Some people can be geniuses but behave like assholes anyway. I never doubted his expertise in C, it's rather his social aspect that bothered me.

>And much of the time he's an asshole because the person he is talking to is dumb as hell.
I know, I know, but it still pisses me off when he does that to people. He even kicked someone for not using apostrophes in words like "didn't" and "can't"... The channel he's operator in isn't ##english-grammar, it's ##c, I mean, c'mon! He insults people around (including the person he is 'helping') in a rather liberal fashion, and you can feel a certain bitterness in almost all his conversations; I guess his mommy didn't hug him enough when he was a child.

I guess it's normal to run into people like that, once in a while, and maybe I'm just a freako for thinking it's wrong; I do understand that some parts of the Internet can be less helpful and more negative than others, but I didn't expect a person like that to be operator in the ##c channel on FreeNode. It's just the way things are, I guess.

Name: Anonymous 2010-01-03 1:38

>>7
Protip: Faults in written natural language end are equally as wrong as faults in programming code.
There is no close enough syntax in programming. It's either perfect or not.

Name: Anonymous 2010-01-03 1:52

>>8
Faults in written natural language end are equally as wrong as faults in programming code.
Faults in written natural language are as wrong as faults in programming code. (the word 'equally' is redundant to the use of 'as' to compare things)

Name: Anonymous 2010-01-03 3:13

>>8
in a natural language, the syntax can be "close enough" and still perform, because of how it's interpreted1.

The interpreter -- the reader -- is sentient. As a result, no two interpreters will behave the same way. Some interpreters may find a fault in one block of natural language that another interpreter would not. And some blocks of natural language may intentionally introduce faults in order to achieve a specific goal2.

It would be erroneous, then, to assume that the same standards for well-formed syntax in programming should necessarily be applied to a natural language. This brings into question any defense of Zhivago's antisocial behavior by claiming that it serves to elucidate a teachable moment. Either the message Zhivago aims to teach is false, the method Zhivago chooses to use to teach is incongruous to the message and therefore erroneous, or Zhivago does not intend for his punishment to teach at all. In all three cases, one can make the argument that Zhivago's behavior is unacceptable.


________________

1As you can see, "it" is an ambiguous reference that may refer to a given natural language, or the syntax of a given natural language. It doesn't need to be explicitly defined, because the reader will interpret "the natural language" and "the syntax of the natural language" as conceptually equivalent in this context.

Additionally, the sentence was not properly punctuated, resulting in broken syntax. However, the sentence is still able to be read, because the interpreter is flexible. But in a programming language, "It is either perfect, or not."


2For example, this paragraph, on two occasions, used two hyphens typed consecutively (--) in order to simulate an em dash (—). Syntactically, these hyphens carry no meaning when connected this way. This practice takes advantage of the ability of the natural language interpreter to automatically locate meta-similarities between symbols.

See "It's not a bug, it's a feature" for a possible parallel to programming practice.

Name: Anonymous 2010-01-03 5:29

>>9
Redundancy is used as a technique of emphasis.

>>10
Cool story bro. We have rules - if you don't follow them, then your not worth the time.

Name: Anonymous 2010-01-03 5:38

>>1
Back to the steaming pile of shit you came from, please.

Name: Anonymous 2010-01-03 5:46

>>12

Whats with all the hate? It's some guy asking for help?

Name: Anonymous 2010-01-03 6:21

>>13
Exactly. About learning C.

Name: Anonymous 2010-01-03 6:26

>>13
Clearly you are new here. We are not here do to your homework or answer silly questions you can find on google. Take it to /pr/.

Name: Anonymous 2010-01-03 6:54

>>1
Read SICP.

Name: Anonymous 2010-01-03 9:53

There are many good books from which you can start learning C. Just make sure you learn the ground-level basics first and then build upon that. K&R's first chapter is probably the best intro to C I've seen, and it's quite a quick read. After the first chapter, learn some I/O (which is quite elegant in C) and just go to town with some scripts while you burn through the rest of the book.

One of the most lovely books I've ever read for C programming was "The Art of Unix Programming." It's not a book that targets C or any specific language, but it has a good amount of C in there and the "Case Studies" are an excellent way to learn a few of the more cryptic areas of C programming. Also, "Expert C Programming" was a great book that contains an extraordinary amount of good tips.

Name: Anonymous 2010-01-03 11:45

>>1
Improved.

Hi,
Can you please send me all the info, including compilers, source code, what program i should write C in, and books/webpages that will teach me how to program in C to lupuion1084@yahoo.com? I try to download it from the official site, but is not avalible any more.
Thanks in advance,
Ion Lupu

______________
References:
http://forums.sun.com/thread.jspa?threadID=5297618

Name: Anonymous 2010-01-03 13:18

>>18
inapoi spre /b/ cu tine

Name: Anonymous 2010-01-03 13:23

>>11
your
Back to /b/, please!

Name: Anonymous 2010-01-03 15:14

>>20
implying yours incorrect
back to /b/, please

Name: Anonymous 2010-01-03 16:43

>>21
[quote]Implying you're not a fucking faggot.[/quote]

Name: Anonymous 2010-01-03 18:14

>>22
back to the imageboards please.
keep that grammar nazi / bbcode failure / implying shit outta the nice clean textboards, please.
or in a language you would understand better: OMGWTF YOU FAIL AND BBCOEDZ XDDDDD GTFO NEWFAG FAGGOT FAG YOU FAIL AT LYFE.

Name: Anonymous 2010-01-03 21:38

>nice
>clean
>textboards

Name: Motherfucking !xHGARYoak6 2010-01-03 21:53

Can we please stay on topic?

>>2
>>3
>>17

thank you for your help.

Name: Anonymous 2010-01-03 21:57

>>25
I second >>2. K&R is really good, and ##C can be a fine resource to help you out.

Name: Anonymous 2010-01-03 21:58

>>25
Look around you, did any of the other threads stay on topic? Is it reasonable then to assume that this one will?

Name: Anonymous 2010-01-03 22:41

>>27
I can hope so right?

Name: Anonymous 2010-01-05 18:30

>>27
Don't be so pessimistic, I for one, still have hope for /prog/.

Name: Anonymous 2010-12-06 9:27

Back to /b/, ``GNAA Faggot''

Name: Anonymous 2011-07-24 21:58

>>6
So true.

>>7 ok now you fuqin angered an humanitarian

Name: Anonymous 2011-07-24 22:49

C Programming: A Modern Approach

Do it.

Name: Anonymous 2011-07-24 23:59

If it ain't bonerlang, it's crap.

Name: Anonymous 2012-03-23 2:00

>>19
du-te-n pizda matii de poponar slinos

Name: Anonymous 2012-03-23 2:06

If ya ain't bwerkin', yer terkin'.

BWARK BWARK

toilet scrubber toilet scrubber, sarah ah desein!

Name: Anonymous 2012-03-23 2:22

use LLVM/Clang to compile
it isn't like the bloated gcc

Name: Anonymous 2012-03-23 10:30

>>37
Clang is incomplete. Why would I want to use that?

Name: Anonymous 2013-03-13 12:32

Zhivagoo

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