Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > The Lounge

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next

 
Reply
Posted 2008-03-27, 07:30 PM in reply to Adrenachrome's post starting "This thread just simply does not..."
Adrenachrome said:
This thread just simply does not deliver, I demand substance!
weed meth is a subtance

not but really...ok like maybe i can post a C toturial while im drunk

ok likew
wee have variables
and they relalocated opn the stack

int c;
int d'

takes up like 8 bytse of space on 32-bit x85

per function of course you fucking idiot


but if you use malloc() we can alocate liek any amount on the heap
which is RAM you fucking idiot
and its managed by the OS

thats why its inpractcal to write an OS in C++
they are written in C
you fucking retarded motherfucking idiotici cunt

ok

so malloc returns a void*

but you can cast to any type you like, and its automatically aligned for your processor

which means you can adress any type you like (a POINTER though)

liek void* int* long* anything

int* i = malloc(sizeof (int))

but in C++ you need to cast
(that whgy the language sux)

int* i = (int*) malloc(sizeof(int))));

ok

thats your first leson
Old
Profile PM WWW Search
Mantralord seldom sees opportunities until they cease to beMantralord seldom sees opportunities until they cease to beMantralord seldom sees opportunities until they cease to beMantralord seldom sees opportunities until they cease to be
 
 
Mantralord
 



 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules [Forum 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
They're after me #2 - Ice cream rage Mantralord The Lounge 13 2004-12-07 03:57 PM
Death, and it's anticipants. Revenge, and it's bearers. Rage and it's occupants... DaFrigginDoctah General Discussion 17 2004-08-19 02:57 PM
My winamp playlist (good or bad) Arkantis Science and Art 48 2004-04-10 07:46 PM
Rage Against the Machine Arkantis Science and Art 15 2004-04-04 05:02 PM
Rage Kuja`s #1 General Gaming 1 2003-06-03 05:23 AM


All times are GMT -6. The time now is 11:35 PM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.