Click here to Skip to main content
15,881,380 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Fun with pointers in C++ Pin
Daniel Pfeffer30-Jun-15 17:56
professionalDaniel Pfeffer30-Jun-15 17:56 
GeneralRe: Fun with pointers in C++ Pin
KP Lee30-Jun-15 18:15
KP Lee30-Jun-15 18:15 
GeneralRe: Fun with pointers in C++ Pin
Daniel Pfeffer30-Jun-15 21:05
professionalDaniel Pfeffer30-Jun-15 21:05 
GeneralRe: Fun with pointers in C++ Pin
grralph11-Jul-15 4:35
grralph11-Jul-15 4:35 
GeneralRe: Fun with pointers in C++ Pin
KP Lee1-Jul-15 15:30
KP Lee1-Jul-15 15:30 
GeneralRe: Fun with pointers in C++ Pin
Bernhard Hiller2-Jul-15 7:49
Bernhard Hiller2-Jul-15 7:49 
GeneralRe: Fun with pointers in C++ Pin
Rob Grainger11-Jul-15 22:43
Rob Grainger11-Jul-15 22:43 
GeneralRe: Fun with pointers in C++ Pin
TheGreatAndPowerfulOz30-Jun-15 9:07
TheGreatAndPowerfulOz30-Jun-15 9:07 
Learn to read code.

Assignment to a function would be
GetA = GetB()
which would mean GetB() returns a function pointer rather than an int* and GetA is function pointer rather than a function.

Learn to read code.
#SupportHeForShe
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
Only 2 things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein

GeneralRe: Fun with pointers in C++ Pin
Luiz Monad24-Jul-15 5:34
professionalLuiz Monad24-Jul-15 5:34 
GeneralRe: Fun with pointers in C++ Pin
Mario Vernari26-Jun-15 2:09
Mario Vernari26-Jun-15 2:09 
GeneralRe: Fun with pointers in C++ Pin
firegryphon29-Jun-15 9:15
firegryphon29-Jun-15 9:15 
GeneralRe: Fun with pointers in C++ Pin
KP Lee1-Jul-15 15:44
KP Lee1-Jul-15 15:44 
GeneralRe: Fun with pointers in C++ Pin
KP Lee1-Jul-15 15:47
KP Lee1-Jul-15 15:47 
GeneralRe: Fun with pointers in C++ Pin
DEmberton26-Jun-15 3:30
DEmberton26-Jun-15 3:30 
GeneralRe: Fun with pointers in C++ Pin
C3D126-Jun-15 3:50
professionalC3D126-Jun-15 3:50 
GeneralRe: Fun with pointers in C++ Pin
James Curran26-Jun-15 5:22
James Curran26-Jun-15 5:22 
GeneralRe: Fun with pointers in C++ Pin
MarkTJohnson26-Jun-15 5:42
professionalMarkTJohnson26-Jun-15 5:42 
GeneralRe: Fun with pointers in C++ Pin
firegryphon29-Jun-15 10:02
firegryphon29-Jun-15 10:02 
GeneralRe: Fun with pointers in C++ Pin
BotReject29-Jun-15 22:58
BotReject29-Jun-15 22:58 
GeneralRe: Fun with pointers in C++ Pin
TheGreatAndPowerfulOz30-Jun-15 9:12
TheGreatAndPowerfulOz30-Jun-15 9:12 
GeneralRe: Fun with pointers in C++ Pin
James Curran30-Jun-15 10:16
James Curran30-Jun-15 10:16 
GeneralRe: Fun with pointers in C++ Pin
TheGreatAndPowerfulOz30-Jun-15 10:35
TheGreatAndPowerfulOz30-Jun-15 10:35 
GeneralRe: Fun with pointers in C++ Pin
James Curran30-Jun-15 11:24
James Curran30-Jun-15 11:24 
GeneralRe: Fun with pointers in C++ Pin
TheGreatAndPowerfulOz30-Jun-15 11:38
TheGreatAndPowerfulOz30-Jun-15 11:38 
GeneralRe: Fun with pointers in C++ Pin
Al Chak29-Jun-15 23:05
Al Chak29-Jun-15 23:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.