Baanboard.com

Go Back   Baanboard.com > Forum > Baan SIGs > Code & Utilities

User login

Frontpage Sponsor

Main

Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
18%
200 - 500 GB
29%
500 - 800 GB
3%
800 - 1200 GB
8%
1200 - 1500 GB
8%
1500 - 2000 GB
11%
> 2000 GB
24%
Total votes: 79

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 4th November 2019, 09:25
günther günther is offline
Guru
 
Join Date: Jan 2002
Location: Ehingen, Germany
Posts: 597
günther is on a distinguished road
Baan: IVc4 - DB: Informix - OS: HP-UX
Just for fun

Hi,

this weekend I came back to the good old IOCCC (International Obfuscating C Code Contest) which is still active. Then I decided to try if I can get one of those C programs working in Baan 3GL. Here's my solution (which is not as good as the original C Version and it lacks a bit of obfuscation, but I think it's funny anyway). Can you figure out, how it works?

Regards
Günther

Code:
long F,OO
function main(){ FOO() message(sprintf$("%1.3f", 4.0*-F/OO/OO)) }
#define ; F=F-1 if -F>OO then OO=OO-1 endif
#define _  F=F-1 if F>OO then OO=OO-1 endif
#define +
function FOO()
{
            _+_+_+;
       _+_+_+_+_+_+_+_+;
    _+_+_+_+_+_+_+_+_+_+_+;
  _+_+_+_+_+_+_+_+_+_+_+_+_+;
 _+_+_+_+_+_+_+_+_+_+_+_+_+_+;
 _+_+_+_+_+_+_+_+_+_+_+_+_+_+;
_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+;
_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+;
_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+;
_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+;
 _+_+_+_+_+_+_+_+_+_+_+_+_+_+;
 _+_+_+_+_+_+_+_+_+_+_+_+_+_+;
  _+_+_+_+_+_+_+_+_+_+_+_+_+;
    _+_+_+_+_+_+_+_+_+_+_+;
       _+_+_+_+_+_+_+_+;
            _+_+_+;
}
Reply With Quote
  #2  
Old 4th November 2019, 16:32
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 7,383
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
LOL - no trying to make me think on a Monday. :)
__________________
Mark

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
  #3  
Old 4th November 2019, 19:06
~Vamsi's Avatar
~Vamsi ~Vamsi is offline
Guru
 
Join Date: Aug 2001
Location: San Diego CA, USA
Posts: 592
~Vamsi will become famous soon enough
Baan: ~*~ - DB: ~*~ - OS: ~*~
Are we trying to rationalize the irrational :)?
__________________
~Vamsi
Vamsi Potluru
Baan XL Yet another tool to format Baan output in Excel from Baan Board
This one just happens to be free :)

Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +2. The time now is 19:46.


©2001-2018 - Baanboard.com - Baanforums.com