There. I said it.I feel (sort of) better now.
2/4/2009 9:47:37 PM
post++
2/4/2009 9:48:14 PM
<-- will do C++ homework for head
2/4/2009 9:48:56 PM
no[Edited on February 4, 2009 at 9:51 PM. Reason : I will, however, take tutoring offers, expecially if you know a lot about this gdb thing]
2/4/2009 9:50:19 PM
computers are stupidyou're smarter than a computer, right?\/ don't forget pointer arithmetic[Edited on February 4, 2009 at 9:53 PM. Reason : ptr = *ptr + 2;]
2/4/2009 9:52:28 PM
it's like java, but with struct
2/4/2009 9:52:45 PM
^^ I'm beginning to wonder...^ If I knew java, that would help.
2/4/2009 9:53:26 PM
i wish i had gdb try using the debugger on VMS then come back and complain to me
2/4/2009 9:53:42 PM
shell2 ~ # gdb /bin/echoGNU gdb 6.7.1Copyright (C) 2007 Free Software Foundation, Inc.License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>This is free software: you are free to change and redistribute it.There is NO WARRANTY, to the extent permitted by law. Type "show copying"and "show warranty" for details.This GDB was configured as "i686-pc-linux-gnu"...(no debugging symbols found)Using host libthread_db library "/lib/libthread_db.so.1".(gdb) set args "WHATS GDB LOL"(gdb) runStarting program: /bin/echo "WHATS GDB LOL"(no debugging symbols found)(no debugging symbols found)(no debugging symbols found)WHATS GDB LOLProgram exited normally.(gdb)
2/4/2009 9:54:31 PM
que?
2/4/2009 9:55:42 PM
aha, well good luck with that then
2/4/2009 9:57:39 PM
post++;
2/4/2009 9:57:48 PM
while (++post);
2/4/2009 9:58:31 PM
TENACIOUSC++ba-dum-ching
2/4/2009 9:59:11 PM
i dont know whats worse. writing the programs yourself or trying to interface with our software developers. that whole floor is full of social awkwardness and hundreds of empty bottles of mountain dew.
2/4/2009 10:00:11 PM
better that then mellow yellow
2/4/2009 10:01:26 PM
but not as good as sun drop
2/4/2009 10:02:11 PM
it's like java, but with struct awesomenesse.g
void strcpy( char * src, char * dst ) { while ( *(dst++)=*(src++) ); // Try making that a one-liner in Java (without using library functions)!11}
2/4/2009 10:05:34 PM
hardcore c++ is MUCH easier to read than hardcore perlso thank your stars its just C++
2/4/2009 10:09:57 PM
^^ that's not C++
2/4/2009 10:15:35 PM
that is perfectly valid C++, though technically it's also Cdo you want me to inline the whole fucking string class smarty pants
2/4/2009 10:16:37 PM
its also horrendously unsafe and insecurecopy a non terminated string and you just reformatted your harddrive.try doing that in Java
2/4/2009 10:18:12 PM
its called memory segmentation you pedantic buffoonget out of here
2/4/2009 10:19:56 PM
goddamn take this shit to tech talk
2/4/2009 10:21:25 PM
in a nerdfight, my money's on scudzyjust fyi.
2/4/2009 10:34:17 PM
this thread is full of awesome
2/4/2009 10:42:07 PM
C++ for You++The name of my AP Comp Sci text book.
2/4/2009 11:06:14 PM
and there's a reason you're a User Experience Designer and nowhere near a Unix system, kiljadn the standard libc string functions operate on null-terminated strings because with memory segmentation (hardware accelerated range checking, if you will), the reality that with overwhelming probability any unterminated string will be terminated by some other null byte, and the fact that disks are not even memory mapped, it's not necessary to have a range value to insure safe operation nor is there any risk of formatting a diskscud is so far from anything resembling reality it's comicalEarlier Java implementations owe their sluggishness in part to the excessive range-checking. Fortunately (and the reason I no longer despise Java) run-time optimization and the unrolling of function calls in later implementations has given with the other hand.[Edited on February 4, 2009 at 11:26 PM. Reason : .]
2/4/2009 11:19:53 PM
^ I'm pretty sure he was mostly being facetious.And I bet there is someone out there who would use a function like that and find a way to format a drive.People can do some weird things sometimes...
2/4/2009 11:40:26 PM
I'd buy that it was facetious if he hadn't responded twice with completely inane comments and then quit responding
2/4/2009 11:48:01 PM
i'll do your C++ homeworkand i won't ask for anything in returnI'm Big Business and i approved this message.
2/4/2009 11:49:18 PM
gdb <program name>break <filename>:<line number>runp <variable name><profit>
2/4/2009 11:51:29 PM
lawlhow are you learning C++ without knowing what gdb is?
2/4/2009 11:54:27 PM
1. g++ -g -o bin source.cpp2.
ulimit -c unlimited
gdb <program> <core>btframe <deepest frame in stack>listprint <var>
2/4/2009 11:55:26 PM
when I was at state they didn't really teach us how to use it... maybe how to run it until your program segfaults and find the line number/stack trace, but nothing really useful.
2/4/2009 11:55:58 PM
also
2/4/2009 11:57:16 PM
2/4/2009 11:59:17 PM
it may be from eight years agobut that doesn't change the fact it's gayer than i am.]
2/5/2009 12:00:17 AM
step 1 get that stick out of your ass because I was just fucking playin' and you made it seriousstep 2 get ready for pwnage because here are the facts:*First of all the phrase "reformat your harddrive" is a very famous and commonly used maxim to refer to behavior undefined by the C++ specification that conveys both a levity and a gravity to what exactly undefined means. Clearly it doesn't indicate that undefined behavior will reformat your drive...merely the the behavior is undefined and the universe of possibilities is wide open. It's mentioned several times by Meyers in Effective C++ and can also be found in Sutter's Exceptional C++ which are both must reads if you ever intend to practice C++ in industry.Believe it or not I've seen white papers that go out of their way to prove that it IS possible.* As any decent C++ programmer should know - dereferencing an uninitialized, null, or otherwise invalid pointer produces undefined behaviorhttp://everything2.com/e2node/undefined%2520behavior* The standard libc functions aren't C++, they are C - that being said the non 'n' functions have been effectively deprecated for nearly a decade9 because they are so notoriously unsafe.http://msdn.microsoft.com/en-us/library/kk6xf663(VS.80).aspxhttp://discuss.fogcreek.com/joelonsoftware/default.asp?cmd=show&ixPost=130850http://www.courtesan.com/todd/papers/strlcpy.htmlhttp://udel.edu/~pconrad/UnixAtUD/strcpy.htmlhttp://en.wikipedia.org/wiki/Strcpy * Oh yeah and to top it off, your shitty strcpy will completely choke on UTF-16/Latin-1 which happens to be the native encoding on modern Windows systems.[Edited on February 5, 2009 at 12:02 AM. Reason : markup]
2/5/2009 12:01:18 AM
^memcpy
2/5/2009 12:04:48 AM
oh nice, the ol' "pull out a random pic from someone's own photo gallery trick," that's never been done before.but the fact that you would do it in response to a post that's not even an attack on anyone, much less directed at you, means you must really think i'm special. i'm flattered. and only a minute after my post... were you just waiting for me to post something so you could finally make your retort from another thread?either way, if that pic makes me gay, i guess i'm as comfortable with my gayness as you are with yours, so good day, sir.
2/5/2009 12:06:57 AM
2/5/2009 12:07:41 AM
can i post this one too? i think it really accentuates my gay side.
2/5/2009 12:08:34 AM
even better.but it needs moar purple hair.[Edited on February 5, 2009 at 12:09 AM. Reason : PS ITS NOT AS FUNNY WHEN YOU TROLL YOURSELF ]
2/5/2009 12:09:12 AM
nice boobs
2/5/2009 12:09:25 AM
just get dev-c++I'm Big Business and i approved this message.
2/5/2009 12:10:09 AM
i think we can all agree that java is the worst abomination of a programming language ever known to man.amirite?
2/5/2009 12:14:06 AM
2/5/2009 12:14:14 AM
2/5/2009 12:16:00 AM
oh god, he's pissed
2/5/2009 12:16:31 AM