137
OrestH
8y

I'm dreaming to send homework to my C++ programing lecturer full of strange #defines and make the code compilable, runnable and working well
He would feel the black side of cpp๐Ÿ˜ˆ๐Ÿ˜ˆ๐Ÿ˜ˆ

Comments
  • 5
    Now I want to try to run that (in a safe VM of course I don't trust you ;))
  • 4
    @AngryDev it's not mine code unfortunately) It's from a worst code competition) that app has to show which time will be after 23 hours)
    P.S. I was to lazy to retype all that crap) pls tell me if that worked =)
  • 2
    It's a little bit of deciphering between the define's and the statement below. But it's really not too bad.
  • 3
    One could really spaghettify it by having defines within defines
  • 2
    I have to run preprocessor and auto-formatting tools before read your code.
  • 1
    You do realise thats not C++, just sayin
  • 1
    @-noob the code on photo is written in C, cause it's not mine) it's an example)
  • 5
  • 1
    @xanathor thanks for the link, finally got a way to keep some idiots from copying my code. Gonna build lots of include files with that
  • 1
    @-noob if you work alone it's cool, but if U R in team, i regret your teammates)
  • 2
    @OrestH still in University, got some shitty slackers who want to copy code and make me explain it, I don't use comments so... yeah
  • 2
    @tisaconundrum Damn, that is just evil
  • 1
    @xanathor oh that was a wonderful trip :D
  • 1
    I see a ( อก° อœส– อก°) on line 26
  • 1
    @DustInCompetent I saw that too)) I wish I could run that code)
  • 0
    If your instructor is smart enough tho, he/she could easily generate the unobfuscated cpp file after preprocessing the obfuscated file, using the cpp executable, since all the code did was use recursive #defines to obfuscate. ๐Ÿ˜‚
  • 0
    @shauryachats I know that) but it will be funny to send them obfuscated file) as I remember it can be preprocessed with gcc (g++), am I right?
  • 0
    100++ celebration =}
Add Comment