Project 1999

Go Back   Project 1999 > General Community > Off Topic

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 04-10-2014, 01:12 AM
r00t r00t is offline
Sarnak


Join Date: Jun 2013
Posts: 330
Thumbs up 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
  #2  
Old 04-10-2014, 03:36 AM
Visual Visual is offline
Fire Giant

Visual's Avatar

Join Date: Feb 2012
Posts: 751
Default

[You must be logged in to view images. Log in or Register.]
  #3  
Old 04-10-2014, 06:47 AM
BigHurb BigHurb is offline
Banned


Join Date: Feb 2014
Posts: 677
Default

Cunt
  #4  
Old 04-10-2014, 06:48 AM
BigHurb BigHurb is offline
Banned


Join Date: Feb 2014
Posts: 677
Default

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
  #5  
Old 04-10-2014, 09:11 AM
r00t r00t is offline
Sarnak


Join Date: Jun 2013
Posts: 330
Default

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
Last edited by r00t; 04-10-2014 at 09:41 AM..
  #6  
Old 04-10-2014, 09:48 AM
SamwiseRed SamwiseRed is offline
Planar Protector

SamwiseRed's Avatar

Join Date: Dec 2011
Location: Tatooine
Posts: 10,176
Default

Quote:
Originally Posted by r00t [You must be logged in to view images. Log in or Register.]
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.
__________________
Current Games:
Naw
  #7  
Old 04-10-2014, 10:01 AM
radditsu radditsu is offline
Planar Protector

radditsu's Avatar

Join Date: Feb 2012
Posts: 1,351
Default

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

Tanrin,Rinat,Sprucewaynee
  #8  
Old 04-10-2014, 10:35 AM
Azure Azure is offline
Banned


Join Date: Aug 2013
Posts: 945
Default

Naw, Fortran!
  #9  
Old 04-10-2014, 10:57 AM
Raavak Raavak is offline
Planar Protector

Raavak's Avatar

Join Date: Aug 2010
Location: Creepin' inta your back door.
Posts: 2,037
Default

C is for Cookie
__________________
[60 Sorcerer] Rakpartha (Erudite)
[60 High Priest] Doktyr (Dwarf)
[25 Shadow Knight] Elandrea (Dark Elf)
  #10  
Old 04-10-2014, 02:03 PM
BigHurb BigHurb is offline
Banned


Join Date: Feb 2014
Posts: 677
Default

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!
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:52 PM.


Everquest is a registered trademark of Daybreak Game Company LLC.
Project 1999 is not associated or affiliated in any way with Daybreak Game Company LLC.
Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.