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

Help learning C++

Name: Yaywalter 2007-11-27 0:49

For those who know C++, could you do me a favor and post some code samples for me? I learn best by dissecting code, but I'm finding it difficult to find code that is my level (i'm a total noob).

Name: Anonymous 2007-11-27 1:08

>>1
Get Linux. Make sure all the GNU compiler tools are installed. Find some Linux game that has source code. Compile the game with debugging support. Run the game in the debugger.

Name: Yaywalter 2007-11-27 1:35

>>2
I'd preferably like to learn C++ in Windows. I really, really don't feel like trying to install Linux on my computer again...

Name: Anonymous 2007-11-27 1:40


#define C_C_(_)~' '&_
#define _C_C(_)('\b'b'\b'>=C_C>'\t'b'\n')
#define C_C _|_
#define b *
#define C /b/
#define V _C_C(
main(C,V)
char **V;
/*    C program. (If you don't
 *    understand it look it
 */    up.) (In the C Manual)
{
    char _,__;
    while (read(0,&__,1) & write((_=(_=C_C_(__),C)),
    _C_,1)) _=C-V+subr(&V);
}
subr(C)
char *C;
{
    C="Lint says "argument Manual isn't used."  What's that
    mean?"; while (write((read(C_C('"'-'/*"'/*"*/))?__:__-_+
    '\b'b'\b'|((_-52)%('\b'b'\b'+C_C_('\t'b'\n'))+1),1),&_,1));
}

Name: Anonymous 2007-11-27 1:41

http://www.google.com/codesearch
Search for random shit using the language filter.
Read SICP

Name: Yaywalter 2007-11-27 1:50

>>4

Hmm... I get errors when I try to compile and run...

>>5

Google has a code search feature? Wow, that's convenient.

Name: Anonymous 2007-11-27 3:06

>>6
Fucking failure.

Name: Anonymous 2007-11-27 6:33

Read SICP

Name: Anonymous 2007-11-27 11:59

/prog/ needs a BAN HAMMER for shitfuckers who can't fucking code.  We're not your teacher, faggots.

Name: Anonymous 2007-11-27 13:35

Have you tried looking for a C++ book with a lot of examples?

Name: Anonymous 2007-11-27 16:41

Read SICP.

Yes, it is a real book. Published by MIT, available for free online.

Name: Anonymous 2007-11-27 17:43

>>11
/prog/ needs a BAN HAMMER for shitfuckers who can't fucking read SICP.  We're not your SICP, faggots.

Name: Anonymous 2007-11-27 17:45

>>1
double foo(double (*procedure)(double,double),int from,int to)
{
    if(from>to)
        return 0;
    else
        return procedure(foo(procedure,from+1,to),from);
}


If you don't understand, quit the internet forever.

Name: Anonymous 2007-11-27 17:49

double foo(double (*procedure)(double,double),int from,int to)
{
    if(from>to)
        return 0;
    else
        return procedure(foo(procedure,from+1,to),(double)from);
}


mea culpa

Name: Anonymous 2007-11-27 18:18


double foo(double (*procedure)(double,double),int from,int to)
{
    if(from>to)
        return 0;
    else
        return procedure(foo(procedure,from+1,to),(double)from);
}

Better

Name: Anonymous 2007-11-27 18:50

>>13-15
Learn to tail-recurse, also when folding the starting value zero is not always a good one (for instance when multiplying).
http://www.pastebin.cz/show/2477

Name: Anonymous 2007-11-27 19:32

>>16
Was there a point to your post, or is it just your way of saying, ``I've read SICP''?

Name: Anonymous 2007-11-28 3:59

>>17
OHHHHH YEAH, THAT's WHAT IT WAS ORIGINALLY..
"Was there any point in your post other than to say, "I've read SICP"'""'\'"

Name: Anonymous 2007-11-28 10:24

Fatal error! Message could not be posted.

Please post threads less often!

Name: Anonymous 2009-03-18 2:24

I'm feeling really keen, for some of that good ol' green

Marijuana MUST be legalized.

Name: Anonymous 2010-12-17 1:36

Are you GAY?
Are you a NIGGER?
Are you a GAY NIGGER?

If you answered "Yes" to all of the above questions, then GNAA (GAY NIGGER ASSOCIATION OF AMERICA) might be exactly what you've been looking for!

Name: Anonymous 2010-12-25 14:21

Name: Anonymous 2011-02-04 18:41

<

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