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

Pages: 1-4041-8081-120121-

I'd liek to learn C++

Name: Anonymous 2008-12-19 21:54

I'm planning to get sufficient knowledge regarding c++ so I can get into the video game industry. Problem is, I'm finishing university at a very different field which is not even remotely connected to anything vidja. I'm looking for books to learn from, and I'd like to ask people's aid in my quest.

Why C++? I do not want to spend years studying others for basics. I have a good understanding and I'm pretty logical in mind. I figured I'd have to change to C++ anyways, so why not starting with it? Any recommendations?

Also, do you think there are possibilities for programmers without highschool and university degrees? I'd finish some quck half-year power courses, but I'd work it out from books and with the help of friends, mainly.

Name: Anonymous 2008-12-19 21:57

so I can get into the video game industry
I'm finishing university at a very different field which is not even remotely connected to anything vidja

That doesn't make any fucking sense at all. Enjoy never getting a job.

Name: Anonymous 2008-12-19 21:57

[quote]Also, do you think there are possibilities for programmers without highschool and university degrees?[/quote]
lmao

Name: Anonymous 2008-12-19 21:59

Alright, that is not very constructive so far.

Name: OP 2008-12-19 22:10

No book proposes? What a let down.

Name: Anonymous 2008-12-19 22:16

What level are you at now? Do you have any programming experience at all or do you not know what a function is?

Name: Anonymous 2008-12-19 22:24

I'm really about to get into it. Got some books and been busy reading and coding basic stuff in my free time, but I have no solid background education-wise. I'm planning ahead for years to come.

Name: Anonymous 2008-12-19 22:29

>>1
I'd recommend focusing on C rather than C++. It's a much cleaner language for a beginner (which I assume you are). C++ pollutes the language with a bunch of poorly-thought out OO features that as a game programmer probably aren't even important to you. It's better to get the basics down first without worrying about Stroustrup faggotry.

Name: Anonymous 2008-12-19 22:32

>>8
Thanks mate, do you happen to have any books for recommendation?

Name: Anonymous 2008-12-19 22:34

Alright, that is not very constructive so far.
Young man, /prog/ prides itself on being unscientific and ultimately destructive. The Sussman himself has deemed it so.

Name: Anonymous 2008-12-19 22:35

It's strongly suggested that C++ not be your first programming language. If your plan is to move on to C++ as soon as you can, then learn C. C++ (for the most part) is a superset of C, but a nitpicky pedantic asshole will read this and tell me how wrong I am. Preemptively, fuck him. If you know C++ then you know C.

Since I presume you've already got a development environment set up for C++, do what you're doing already but name your files .c instead of .cpp so your compiler enforces this.
Get very, very, very used to these basic elementary concepts which are pretty much universal or very common amongst the languages and environments you will be working with. These are very vanilla, fundamental concepts that are not at all unique to C or C++ at all:
loops, functions, return values, argument passing, structures, external libraries and how to link to them, how to write reusable code, cohesion, rules of thumb for how long a function should be
This is all covered in Code Complete, 2nd edition by Steve McConnell, Microsoft Press. Get ahold of it. Right fucking now. Take advantage of your university's math/science library. It's $30 or so if your library doesn't have it.

Name: Anonymous 2008-12-19 22:42

C++ (for the most part) is a superset of C, but a nitpicky pedantic asshole will read this and tell me how wrong I am.
I don't call the lion a domesticated animal just because it happens to share a lineage with domesticated felines. If your wrong, it's because your wrong.

Name: Anonymous 2008-12-19 22:44

>>12
What about his wrong?

Name: Anonymous 2008-12-19 22:47

>>12
When did the average level of English started to decline around here? 4chan is horrible nowadays.

Name: Anonymous 2008-12-19 22:57

>>14
It's a meme.

Name: Anonymous 2008-12-19 23:48

>>14
It's a yhbt

Name: Anonymous 2008-12-20 0:52

>>9
So like what 11 said, even though C++ is a warty ugly piece of shit, if you're going to be in the INDUSTRY you'll most likely need to know it in-and-out regardless, just not yet. All that stuff that's in C++ and not C you really have to know what you're doing. If not, it'll just make your life a lot harder. There's a huge field of convoluted, hacky, arcane, obfuscated C++ tricks that people have figured out to work around these warts.

Advanced C++ books. Commencing namedrop:
Exceptional C++, Herb Sutter
Effective C++, Scott Meyers
More Effective C++, Scott Meyers

Name: Anonymous 2008-12-20 2:33

For a beginner, Accelerated C++, byt Koenig and Moo -- it is about the only introductory book that doesn't lead you into bad habits of treating the language as C with a few bolt-on flanges.

Name: Anonymous 2008-12-20 3:28

REALITY CHECK

What makes you think you want to be in the industry, programming games in Sepples? Let me see if I have this right. You have: no expertise in computer graphics, no expertise in physics simulation, no expertise in audio programming, no AI expertise, and no general programming experience? What in the world leads you to believe you would enjoy doing any of these things, much less makes you want to delve into the astoundingly painful world of Sepples before learning about what you'd actually be doing?

REALITY CHECK

Let's approach this from another angle. What part of the game making process are you most interested in? If it's the creative aspects, grunt programmers don't do that. If you want to be a game artist or a mapper, do that, and don't get side-tracked into programming.

If you want to be a game designer, then you'll have to program your own games to get experience and prove your skills, but you certainly don't have to lower yourself to working in Sepples on a personal project.

Only if you want to write the graphics, physics, sound, or AI code* for a commercial game will you have to dirty your mind with Sepples. And even then you've got a lot of studying to do to actually be useful in the field. You can get started with anything other than Sepples.

You said, "I figured I'd have to change to C++ anyways, so why not starting with it?" This is because you don't know Sepples yet. If you did, you'd understand why you want to avoid it as much as possible. A wise person would pick a language like Lisp and use it to find out if they even like writing graphics/ai/whatever code. If they do, then they can begin the Sepples grind. Your average smartish person would pick a generally good language like Python and do the same. You'll have to pick up Sepples eventually if it turns out you do enjoy programming game guts, but using Sepples to find that out is like using a drill press to find out if you like anal stimulation.

* Not an exhaustive list.

Name: Anonymous 2008-12-20 3:44

>>19
Best post in the thread.

Start with PyGame or something.

Name: Anonymous 2008-12-20 4:34

>>1
Programmers are merely secretaries in the overal scheme.
 
The designer comes up with the idea, breaks it down in a design document.
Gives the psudocode/flowcharts to the coders.
The concept art shit to the art fags and the musical concept to the sound engineers and then proceeds to cash his paycheque and snort cocain off a hookers ass whilst the coders impliment the design.
 
If you want to be a coder expect to work long hours, get paid a meagre wage and have almost no say in the overall design concept.
 
And maek vidya gaems is NOT nearly as fun as it sounds.
Fact 1: in the commercial world you will have no say in what your making.

Fact 2: you will be making a game you loathe, hate puzzle gaems? thats what you'll be building.

Fact 3: Even though you loathe it now thats nothing compared to how much you will six months down the line when youve been working with it for 18hrs a day.

Fact 4: Your an expendable member of the team, any fucking college dropout can sufficiently code a few functions and they all thing "MAEK VIDYA GAEMS" is an easy career choice.

Fact 5: VIDYA GAEMS CODARZ get paid less than coding anywhere else in the industry.

Fact 6: If your still reading this and not horrified at the prospect of becomming yet another broken desk monkey then your pretty much cut out for the industry.

Name: Anonymous 2008-12-20 5:07

LOL vidya programmers.
Learn AJAJ and web 3.0 your way to $$$. or at least try to comprehend sicp and become legit. unless you're john carmack there's no glory or money in being a sepples slave.

Name: Anonymous 2008-12-20 5:09

>>22
Shut the fuck up namedropper.

Name: Anonymous 2008-12-20 5:13

>>23
FFFF
FFFFFF
  FIBONACCI

Name: Anonymous 2008-12-20 5:17

Indies could make a cut, so OP should aim for that. Breaking in would be fuckalot harder though. Chekc World of Goo and 90% piracy rates. Heh.

Name: Anonymous 2008-12-20 6:47

0/10

Name: Anonymous 2008-12-20 7:09

HI JACK

Im a programmer looking for a job in the sussex area. I have 5 years commerical experience. Plz give me job

Name: Anonymous 2008-12-20 7:15

If you want to learn C++, don't start with C as some people in this thread suggested. You'll just learn C habits and use those in your C++ code. So you'll become another shitty C++ programmer who thinks C++ is just C with some object-oriented stuff tacked on. Although they are somewhat similar C and C++ are different languages. If you want to learn C++, then learn C++ and don't bother with C stuff that has no use in C++. I suggest >>18's recommendation of Accelerated C++.

Name: Anonymous 2008-12-20 12:08

>>19
>>21
Thread over.

Name: Anonymous 2008-12-20 12:10

You'll just learn C habits and use those in your C++ code.
And this is bad... how?

So you'll become another shitty C++ programmer who thinks C++ is just C with some object-oriented stuff tacked on.
Which means he would be correct.

Name: Anonymous 2008-12-20 12:45

>>30
There's templates, exceptions and namespaces too.

Name: Anonymous 2008-12-20 12:45

>>30
You'll just learn C habits and use those in your C++ code.
And this is bad... how?
Using char* instead of std::string, using arrays instead of std::vector, using malloc instead of new, using #define instead of inline functions and constants.

So you'll become another shitty C++ programmer who thinks C++ is just C with some object-oriented stuff tacked on.
Which means he would be correct.
That you couldn't tell why using C constructs in C++ is a bad idea suggests that you are in fact incorrect.

Name: Anonymous 2008-12-20 12:47

>>30
And this is bad... how?
C++ is C++. Programmers who go from C to C++ use C alternatives all the time in their C++ code instead of using the tools the language gives them. Learning a language totally unrelated to what you want to do just to get the ``basics'' is completely stupid and will make you a bad programmer.

Name: Anonymous 2008-12-20 12:57

>>32
Using char* instead of std::string
In case you haven't already noticed, every fucking C++ library defines its own string class and refuses to operate using anything else.

Name: Anonymous 2008-12-20 12:57

>>32
Inconsequential examples. Better ones would be never understanding object-oriented design, continuing writing procedural C code with only some C++ features tacked on.

Name: Anonymous 2008-12-20 13:23

>>35
Perhaps so, although OO-design and C++ have little to do with each other. And using "only some C++ features"[1] is the best way to go. The only valuable features are classes, virtual methods, small pieces of the STL and judicious use of templates. Everything else is terrible and should be ignored (to the extent that it's possible, of course — the great thing about Sepples is that you'll have to learn everyone else's favorite subsets of the language in order to deal with third-party libraries and shit. Yay.)



Works Cited
[1]. Anonymous, http://dis.4chan.org/read/prog/1229741205/35. Accessed 12-20-2008.

Name: Anonymous 2008-12-20 13:25

>>36
small pieces of the STL
True story: I initially read that as `small pieces of SHIT' and then realized that at least I got the semantics right the first time.

Name: Anonymous 2008-12-20 13:39

Hey

Read this: http://staff.science.uva.nl/~fontijne/phd.html

It's about the efficient implementation of Geometric Algebra for computer graphics (or at least that is one of the applications).  It should be about your level.

Name: Anonymous 2008-12-20 13:41

No but seriously

If you want to learn C++ (which isn't a bad move)

Get this fucking BOOK

http://www.amazon.com/Core-C-Software-Engineering-Approach/dp/0130857297

It is the best c++ book i have seen.

Follow it up with a STL/Data structures book

And finally:

Effective C++ by Meyer.  Which after reading if you are intelligent will make you drop C++ in search of other languages

but the journey will be good :P

Name: Anonymous 2008-12-20 13:44

Video game coders also are fucking horrible

so the pay comes with how bad they are

Name: Anonymous 2008-12-20 14:41

>>36
With "only some C++ features" I meant programming in C, but using new and delete instead of malloc and free. It happens more often than you'd think.

Name: Anonymous 2008-12-20 15:18

>>41
programming in C, but using new and delete instead of malloc and free
I am intrigued by your idea. I will start programming thusly immediately.

Name: Anonymous 2008-12-20 15:25

Game programming is better done as a hobby than as a job.

Name: Anonymous 2008-12-20 15:39

If you want to learn C++ (which isn't a bad move)
the journey will be good :P
Don't hurt the poor guy. The journey to Sepples will be painful and futile, and only a good move insofar as it accomplishes the goal of becoming a maltreated low-level code monkey forced to work in Sepples.

Name: Anonymous 2008-12-20 15:41

Stroustrup must be assassinated.

Name: Anonymous 2008-12-20 15:42

>>45
I assume you meant to say something about a time machine and doing it in the past.

Name: Anonymous 2008-12-20 15:48

STROUSTRUP IS A MURDERER

Name: Anonymous 2008-12-20 15:59

Stroustrup did wtc

Name: Anonymous 2008-12-20 16:43

>>46
Not necessarily, he's still going. Damage control, damage control!

Name: Anonymous 2008-12-20 17:16

STROUSTRUP = AL QAEDA =  C++

Name: Anonymous 2008-12-21 0:46

>>50
I think this is possible with the right overloading of operator=

Name: Anonymous 2008-12-21 9:37

>>51
=D

Name: Anonymous 2008-12-21 14:19

Learn OpenCL and C instead.

Read SICP too.

Name: Anonymous 2008-12-21 15:17

>>53
OpenCL and C
OpenCL
CL
Common Lisp

Name: Anonymous 2008-12-21 16:59

Casually referencing SICP like should be a bannable offense.

Name: Anonymous 2008-12-21 19:11

>>55

what does common lisp have to do with SICP?

Name: Anonymous 2008-12-21 19:12

>>56
53 said "Read SICP too." you fucking idiot.

Name: Anonymous 2008-12-21 19:16

>>54
i think you mean Scheme

Name: Anonymous 2008-12-21 19:18

>>57

Oh sorry, i don't read things that are irrelevant.

Name: Anonymous 2008-12-21 19:20

>>59
4chan /prog/ is irrelevant. You're irrelevant. Kill yourself. No one will miss you.

Name: Anonymous 2008-12-21 19:23

>>59
I'LLLA MISS YOUASASDGASDGA

Name: Anonymous 2008-12-21 19:27

>>59
>>61
samefag

Name: Anonymous 2008-12-21 20:00

"Sepples" is a worthless language. Everything you'll be doing in a proper ENTERPRISE setting will be on some kind of "FGJRÖULNNNIURR/" framework. It's what the "real pros" use.

Name: Anonymous 2008-12-21 20:24

>>63
Can you get a bit of a logo like that, with the "GRUNNUR" in green?

Name: Anonymous 2008-12-21 20:26

"test"

[rem]"[/rem]test[rem]"[/rem]

Name: Anonymous 2008-12-21 20:35

[rem]"[/rem]test[rem]"[/rem]

"foo"

"foo"foo[/code]

Name: Anonymous 2008-12-21 20:36

What the fuck is with /prog/ and their overuse of bold, underline, superscript, spoiler tags and all that shit

Name: Anonymous 2008-12-21 20:40

>>67
overuse
Lolwat.

They ought to get BBCODE implemented on the image boards.

Name: Anonymous 2008-12-21 20:45

F "G" J "R" Ö "U" L "N" N "N" I "U" R "R"

Name: Anonymous 2008-12-21 21:10

>>67
0/10

Name: Anonymous 2008-12-21 21:19

>>69
10/10

Name: Anonymous 2008-12-21 21:40

>>69
11/10

Name: Anonymous 2008-12-21 23:14

F "G" J "R" Ö "U" L "N" N "N" I "U" R "R"

[b][sup]F[/sup] [sub][code]"G"[/code][/sub] [sup]J[/sup] [sub][code]"R"[/code][/sub] [sup]Ö[/sup] [sub][code]"U"[/code][/sub] [sup]L[/sup] [sub][code]"N"[/code][/sub] [sup]N[/sup] [sub][code]"N"[/code][/sub] [sup]I[/sup] [sub][code]"U"[/code][/sub] [sup]R[/sup] [sub][code]"R"[/code][/sub][/b]

"FGJRÖULNNNIURR/"

[b]"[sup]F[/sup]G[sup]J[/sup]R[sup]Ö[/sup]U[sup]L[/sup]N[sup]N[/sup]N[sup]I[/sup]U[sup]R[/sup]R[sup]/[/sup]"[/b]

BBCODE was meant to be free*.

__________________________________________________________
           *GNU LESSER GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>;
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.


  This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.

  0. Additional Definitions.

  As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.

  "The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.

  An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.

  A "Combined Work" is a work produced by combining or linking an
Application with the Library.  The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".

  The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.

  The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.

  1. Exception to Section 3 of the GNU GPL.

  You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.

  2. Conveying Modified Versions.

  If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:

   a) under this License, provided that you make a good faith effort to
   ensure that, in the event an Application does not supply the
   function or data, the facility still operates, and performs
   whatever part of its purpose remains meaningful, or

   b) under the GNU GPL, with none of the additional permissions of
   this License applicable to that copy.

  3. Object Code Incorporating Material from Library Header Files.

  The object code form of an Application may incorporate material from
a header file that is part of the Library.  You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:

   a) Give prominent notice with each copy of the object code that the
   Library is used in it and that the Library and its use are
   covered by this License.

   b) Accompany the object code with a copy of the GNU GPL and this license
   document.

  4. Combined Works.

  You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:

   a) Give prominent notice with each copy of the Combined Work that
   the Library is used in it and that the Library and its use are
   covered by this License.

   b) Accompany the Combined Work with a copy of the GNU GPL and this license
   document.

   c) For a Combined Work that displays copyright notices during
   execution, include the copyright notice for the Library among
   these notices, as well as a reference directing the user to the
   copies of the GNU GPL and this license document.

   d) Do one of the following:

       0) Convey the Minimal Corresponding Source under the terms of this
       License, and the Corresponding Application Code in a form
       suitable for, and under terms that permit, the user to
       recombine or relink the Application with a modified version of
       the Linked Version to produce a modified Combined Work, in the
       manner specified by section 6 of the GNU GPL for conveying
       Corresponding Source.

       1) Use a suitable shared library mechanism for linking with the
       Library.  A suitable mechanism is one that (a) uses at run time
       a copy of the Library already present on the user's computer
       system, and (b) will operate properly with a modified version
       of the Library that is interface-compatible with the Linked
       Version.

   e) Provide Installation Information, but only if you would otherwise
   be required to provide such information under section 6 of the
   GNU GPL, and only to the extent that such information is
   necessary to install and execute a modified version of the
   Combined Work produced by recombining or relinking the
   Application with a modified version of the Linked Version. (If
   you use option 4d0, the Installation Information must accompany
   the Minimal Corresponding Source and Corresponding Application
   Code. If you use option 4d1, you must provide the Installation
   Information in the manner specified by section 6 of the GNU GPL
   for conveying Corresponding Source.)

  5. Combined Libraries.

  You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:

   a) Accompany the combined library with a copy of the same work based
   on the Library, uncombined with any other library facilities,
   conveyed under the terms of this License.

   b) Give prominent notice with the combined library that part of it
   is a work based on the Library, and explaining where to find the
   accompanying uncombined form of the same work.

  6. Revised Versions of the GNU Lesser General Public License.

  The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.

  Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.

  If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.

Name: Anonymous 2008-12-21 23:27

>>73
Reverse engineering of BBCODE violates the EULA. Also, the "GRUNNUR" needs to be in green.

Name: Anonymous 2008-12-21 23:35

>>74
"FGJRÖULNNNIURR/" is the streamlined, scalable ENTERPRISE implementation, suitable for being posted across thousands of threads without significant slowdown.

Name: Anonymous 2008-12-22 21:37

Asking this sort of question on /prog/ was your first mistake. Just look for books on C++ -- I remember when I used to post topics asking how/where/what-to-look at to learn C++ and I didn't learn shit from that. Just look at different books, practice, look for programming challenges, etc. When you think you're experienced enough, look at stuff on SF and rewrite it in  C++ and hopefully you'll get better from there.

Asking here will only get you the following response:

- SICP
- LEARN C, C > C++
- HASKELL
- CUDDER

and many more of demonstrations of /prog/'s sillyness. Silly /prog/.

Then after that, WRITE A FUCKING NEURAL NET. Nah, just kidding. But anyway, good luck.

Name: Anonymous 2008-12-22 21:46

>>76
Are you seriously taking Sepples seriously as a language?

Name: Anonymous 2008-12-22 22:24

>>12
Oh whoa! Hold on a minute there, I won't let this shit slide.

House cats are not domesticated felines. There is no such thing as a domesticated feline. The only reason they're called house cats is because you feed them and give them a place to crash at night.

Name: Anonymous 2008-12-22 22:39

>>78
Look out, we have a Cat Person on our hands. Keep an eye out for gems such as:
I don't own my cat; it owns me.

Name: Anonymous 2008-12-22 22:53

I don't hax my anus; it haxxes me.

Name: Anonymous 2008-12-22 23:15

The next release of the groundbreaking ANONIX GENERAL PURPOSE MACHINE CONTROL SYSTEM will include a completely rewritten, blazingly efficient, feature-complete! version of `cat`.

Name: Anonymous 2008-12-22 23:25

A cat is Touring Complete.

Name: Anonymous 2008-12-22 23:49

My other cat is a cdt.

Name: Anonymous 2008-12-23 11:07

>>77

Yes, it's a language. Now matter how many unix/C users bash it, it's still a language. I'm not saying it's the best language or even a good one to start off with, but it'st still a language.

Name: Anonymous 2008-12-23 12:47

>>84
I asked whether he was taking it seriously, not whether it was a language.

Name: Anonymous 2008-12-23 19:52

>>84

You asked whether he was taking it seriously AS A LANGUAGE. Unless I'm going blind.

Name: Anonymous 2008-12-23 22:26

>>86
You're just going stupid. He might take it seriously as a threat to the future of our nation, for example. That would be fine. As a language, it's nothing more than a joke. Possibly a serious joke.

Name: Anonymous 2011-02-02 22:34

Name: Anonymous 2011-02-02 23:24

Name: Anonymous 2013-04-18 0:42

:-)

Name: Anonymous 2013-04-18 8:05

Name: Anonymous 2013-04-18 8:05

Name: Anonymous 2013-04-18 8:05

Name: Anonymous 2013-04-18 8:06

Name: Anonymous 2013-04-18 8:06

Name: Anonymous 2013-04-18 13:40

>>92
>>93
>>94
>>95
>>96
Kike-kun, why are you sagebombing this thread? I'm not seeing any information that is damaging to the jewish cabal in it.

Name: Anonymous 2013-04-18 14:09

>>97
I had to. The page was not loading past >>89's post.

Name: Anonymous 2013-04-18 15:18

>>97,97,97,97-97,97-97,97-97
DQN-tan, why are you not optimizing your references?

Name: Anonymous 2013-04-18 16:08

>>99
You are an anal null

Name: Anonymous 2013-04-18 17:04

>>99-100
What a waste of dubs

Name: Anonymous 2013-04-18 18:43



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-18 18:48



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-18 18:54



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

Name: Anonymous 2013-04-18 23:52

>>33
Learning a language totally unrelated to what you want to do just to get the ``basics'' is completely stupid and will make you a bad programmer.
bad programmer

What about better performance?
http://unthought.net/c++/c_vs_c++.html
see C++'ification of the C solution

You sepples faggots sure are in denial.

Name: Anonymous 2013-04-19 5:41

>>105
LOOK AT DESE FUCKIN STACK BOYS, THINKIN THEY'RE SO COOL. SAVING A FEW MICROSECONDS WRITING THEIR OWN LITTLE MEMORY ALLOCATOR AROUND malloc. WELL THEY STILL BLOW THEIR FUCKING BALLS MANUALLY SETTING EACH ELEMENT OF THE ARRAY TO NULL POINTERS (REED ABOUT STATIC ALLOCATION IN DA STANDARD YOU FUCKING STACK BOYS). THEY STILL BLOW THEIR FUCKING ANUSES MAINTAINING A "count" OF EACH FUCKING WORD. AT LEAST THEY AREN'T ONE OF THESE RETARDED RED BLACK BLUE GREEN OH LOOK NOW I'M FUCKING COLOUR BLIND BOYS. GO SUCK MARCUS PERSSON'S COCK YA FUCKIN SEPPLES NUT.

47 LINES OF FUCKING CODE, RIGHT FROM THE FUCKING STANDARD ITSELF:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct node {
    char *s;
    struct node *next;
};

struct node *table[29989];

unsigned int hash(const char *s)
{
    unsigned int h;

    for (h = 0; *s; s++)
        h = 31 * h + (unsigned char) *s;
    return h % (sizeof table / sizeof table[0]);
}

void insert(const char *s)
{
    struct node *np;
    unsigned int h;

    for (np = table[h = hash(s)]; np; np = np->next)
        if (!strcmp(s, np->s))
            return;
    if (!(np = malloc(sizeof *np)) || !(np->s = malloc(strlen(s) + 1)))
        exit(EXIT_FAILURE);
    strcpy(np->s, s);
    np->next = table[h];
    table[h] = np;
}

int main(void)
{
    unsigned long int total = 0;
    char buf[256];

    while (scanf("%255s", buf) == 1)
        insert(buf);
    for (size_t i = 0; i < sizeof table / sizeof table[0]; i++)
        for (struct node *np = table[i]; np; np = np->next)
            total++;
    printf("%lu\n", total);
}


NOW GIVE ME ADVICE FOR GETTING RID OF MY FUCKING SMEGMA, U FUCKING STACK BOYS: http://dis.4chan.org/read/prog/1366258464/1-

Name: Anonymous 2013-04-20 2:36

I WIN I WIN

Name: Anonymous 2013-04-20 3:09

>
>>
>>>
>>>>
>>>>>asdf

Name: Anonymous 2013-04-20 3:10

>asdf

Name: Anonymous 2013-04-20 3:51

Have you red your THE STANDARD today?

Name: Anonymous 2013-04-20 4:32

hav you checked my fuckin trips today?

Name: Anonymous 2013-04-20 4:35

You know, what I really miss in C and C++? It's region based memory management, but I guess it is difficult for the compiler to automatically annotate the regions, because C++ doesn't have a strong enough type system. You can dump a pointer in any integer any time. That sucks a bit.

Name: Anonymous 2013-04-20 5:59

>>112
What stops you from using RAII to implement regions?

Name: Anonymous 2013-04-20 6:01

>>113
i.e. define some with_region(R, ({body})) macro

Name: Anonymous 2013-04-20 6:04

>>114
would be a huge bug source, breaking goto, continue and return statements.

Name: Anonymous 2013-04-20 6:06

Although GCC does implement RAII for pure C

   int watched __attribute__((cleanup (scoped)));

Name: Anonymous 2013-04-20 6:40

download codeblocks IDE
go here and play with all the examples
http://tinyurl.com/ydkpmqs
Google search for UCFs other classes on C (cop3223 lobo might be a good first start).
Get a book on learning to code in C
post here regularly to hone your mental awareness of [b][i][u]Jeremiah Goldstein.[/b][/i][/u]

After some time, switch it up and learn some python, hell learning them together might not be a bad idea if you're crunched for time.  Seeing things from two different perspectives might be helpful.

Lisp is trash, ruby is trash, JS is trash, only code in C derivatives (C, C++, Java) for [b][i][u]ENTERPRISE QUALITY CODE.[/b][/i][/u]

Name: Anonymous 2013-04-20 6:48

>>117
you fail at bbcode

Name: Anonymous 2013-04-20 7:01

>>118
apparently i do.

Name: Anonymous 2013-04-20 9:18

>>114

Yeah, that would be fucking great. Even fucking greater would be a compiler, who can figure out the annotations for me.

That's the problem with C++ the type system is not strict enough, thus GCC cannot play and win the region annotation game without some gruesome fails.

Name: Anonymous 2013-04-20 9:23

>>120

You know, it is the same as running manually the garbage collector. If you need to do that, you SHOULDN'T use a garbage collector. FUUCK this shit makes me so angry.

Hey you want continuations in C++, hey man, you can do, just unwind the stack, bro.

Hey you want anonymous function in C++, you can use function objects mate. That is almost the same, you just need to create a class.

It is all not the same. I KNOW THIS SHIT IS TURING COMPLETE< BUT FUCK ME< BECAUSE M4 IS ALSO TURING COMPLETE> SO WHY SHOULD I USE C__ THGEN RE" RE"PIHAA"PFS
fadP
h
sacfv
';kadGSIEGHEILMEINFUHRER fuck yOU YOU YOU

Name: Anonymous 2013-04-20 18:47

Name: Anonymous 2013-04-20 23:37



Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop


Searching for legit Microsoft Product keys, Windows 8,7,Studio,Server etc.?

 Mail me at jeremiahgoldstein@hotmail.com

 25$ a pop

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