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

Pages: 1-

C POINTERS

Name: Anonymous 2009-07-16 9:20

I've got troubles with pointers

fuck'em

Name: Anonymous 2009-07-16 9:22

That's..... nice?
Pointers are fine when used rationally though.

Name: Anonymous 2009-07-16 9:42

I'm enjoying my ampersand operators. You're clearly doing something terribly wrong.

Name: fuck you ! 2009-07-16 9:52

>>1
you are a huge faggot and should never ever be allowed to use a computer or any computational device again .

Name: Anonymous 2009-07-16 10:02

Pointers are on of these things that perplex me (regexps come to mind as an another example). But not because I cannot comprehend them, but because such a large chunk of the programmer community seems to have problems with getting a hang of it. I really do not see anything that would prevent you from grasping pointers after just few quick examples.

Name: Anonymous 2009-07-16 10:04

>>4
Seconded. People who don't understand pointers should not be allowed near a computer. Leave the thinking to white people, >>1.

Name: Anonymous 2009-07-16 10:25

This is probably a troll, but I'll bite:
Pointers are easy. Just view them for what they are: addresses to stuff in memory. You can get the adress or something and you can "dereference" that pointer to get the actual data. You'll also have to keep in mind how the stack and heap works and how to deal with memory allocation to be able to make more use of them. If you still can't comprehend them after a bit of playing around in your C compiler and/or debugger, then learn something simpler like Java or C# and leave lower level coding to people that know what they're doing. You still have pointers in those languages as well, but operation with them is abstracted and not visible to the programmer (even if that's how the languages are implemented underneath), and you will have to deal with explicit reference types too in those languages (for example: if you want to pass a parameter which will be modifed by some method and have that value persist back in the caller function), but at least the compiler will take care of most of the handling required for you.

Name: Anonymous 2009-07-16 10:31

Mr.>>7 seems to be a good teacher. Impressed.

Name: Anonymous 2009-07-16 11:00

>(eq? >>7 >>8)
#t

Name: Anonymous 2009-07-16 11:54

>>1
that solution works well with women too

Name: Anonymous 2009-07-16 14:02

>>10

Women are just null pointers?

Name: Anonymous 2009-07-16 14:26

>>11
free (woman);
Segmentation fault

Name: Anonymous 2009-07-16 14:41

>>12
try :
free(Woman);

Name: Anonymous 2009-07-16 15:39

{pinku@^.^:~} sudo man woman
sudo: This is not ubuntu, faggot

Name: Anonymous 2009-07-16 15:42

>>13
catch:
herpes;

Name: Anonymous 2009-07-16 16:03

1 ?- free(Woman).
No

Name: Anonymous 2009-07-16 16:06

yhbt> :t woman
*** Exception: stack overflow

Name: Anonymous 2009-07-16 16:39

Prelude> :t wom
*** Exception: stack overflow

Name: Anonymous 2009-07-16 16:42

Prelu*** Exception: stack overflow

Name: Anonymous 2009-07-16 16:52


$ gh*** Exception: stack overflow

Name: Anonymous 2009-07-16 17:01

try {
  free(woman);
} catch (SpermOverFlowException whore)

Name: > 2009-07-16 19:14

>>21

catch (SpermOverFlowException whore) {
return isItWorthIt(whore.getSTDStack());
}

Name: Anonymous 2009-07-16 20:32

>>20
how can it throw an exception when it's not even running‽

Name: Anonymous 2009-07-16 20:51

C pointers
Don't program in C.

Name: Anonymous 2009-07-16 21:03

chris-laptop logi*** Exception: stack overflow

Name: Anonymous 2009-07-16 21:46

>>23
Race condition.

Name: Anonymous 2009-07-17 13:40

Pointers are awesome.  How could you not like them.  They're not even hard.

Name: Anonymous 2010-12-17 1:18

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!

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