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

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-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.

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