Project 1999

Project 1999 (/forums/index.php)
-   Off Topic (/forums/forumdisplay.php?f=19)
-   -   C appreciation thread (/forums/showthread.php?t=146708)

r00t 04-10-2014 01:12 AM

C appreciation thread
 
C is what God programmed our universe in. Post your C appreciation, hints, tips, & tricks itt


When Bjarne Stroustrup used to talk about the free-store I always thought new was overloaded to just use malloc. Then I discovered the main difference between new and malloc(): the C function doesn't set up C++ virtual tables so you get a read violation

here's a neat trick for detecting big endian system

Code:

const union { long one; char little; } is_endian = {1};
if (!is_endian.little)

SELECT finger FROM hand WHERE id = 3

Visual 04-10-2014 03:36 AM

http://s3.amazonaws.com/rapgenius/article_gangCrips.jpg

BigHurb 04-10-2014 06:47 AM

Cunt

BigHurb 04-10-2014 06:48 AM

one little two little three little endians four little fix little six little endians seven little eight little nine little endians

10 little endian boys

ps: you dont sound smart using other peoples ideas, thats not computer science thanks bye moron

r00t 04-10-2014 09:11 AM

also in further experimentation just as I suspected malloc() will not implicitly call a constructor/destructor

but who needs C++ when you can just make a few ugly macros, polymorph some typdeffed structs with void pointers, and declare some globals static?




also

https://www.youtube.com/watch?v=H4YRPdRXKFs

SamwiseRed 04-10-2014 09:48 AM

Quote:

Originally Posted by r00t (Post 1406981)
C is what God programmed our universe in. Post your C appreciation, hints, tips, & tricks itt


When Bjarne Stroustrup used to talk about the free-store I always thought new was overloaded to just use malloc. Then I discovered the main difference between new and malloc(): the C function doesn't set up C++ virtual tables so you get a read violation

here's a neat trick for detecting big endian system

Code:

const union { long one; char little; } is_endian = {1};
if (!is_endian.little)

SELECT finger FROM hand WHERE id = 3

What you have just said is one of the most insanely idiotic things I have ever heard. At no point in your rambling, incoherent response were you even close to anything that could be considered a rational thought. Everyone in this room is now dumber for having listened to it. I award you no points, and may God have mercy on your soul.

radditsu 04-10-2014 10:01 AM

https://m.youtube.com/watch?v=ClP8n6asn3w

Azure 04-10-2014 10:35 AM

Naw, Fortran!

Raavak 04-10-2014 10:57 AM

C is for Cookie

BigHurb 04-10-2014 02:03 PM

In the solution to the Schrodinger equation for the hydrogen atom, three quantum numbers arise from the space geometry of the solution and a fourth arises from electron spin. No two electrons can have an identical set of quantum numbers according to the Pauli exclusion principle , so the quantum numbers set limits on the number of electrons which can occupy a given state and therefore give insight into the building up of the periodic table of the elements.

look how cool i am!


All times are GMT -4. The time now is 08:27 PM.

Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.