Gaming 1....1.000.000

Is there a reason C++ doesn't support binary numbers? It seems like it'd be a practical thing to have.

No real reason, it is just that hexadecimal is more comfortable.

C++ can do a lot of stuff with binary numbers, but it requires the STL for that.

In HAL/S, the programming language of the Space Shuttle, the same would be:

Code:
M DECLARE X INTEGER DOUBLE INITIAL(BIN'11011110101011011011111011101111');
 
Last edited:
Does anyone else find it ominous that the Shuttle's computer uses a language called HAL? I mean, wouldn't you be worried it would refuse to open the payload bay for you?

Besides, I think everybody appreciates the Joys of Hex.
:rofl:
 
Code:
M DECLARE X INTEGER DOUBLE INITIAL(BIN'11011110101011011011111011101111');
is dat sum COBOL?


Something far more useful:
Code:
101011110001010
11111000111111 101011110010100 10111000101000010110100000?
111111111001110111010000000000000000 "101011110001010 11010001011100000110100000!"
101010001101001111010000000000000000
Almost forgot, good luck with that. It's also fine to give up, really!
 
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
 
is dat sum COBOL?

Not really. In COBOL I would still be typing.

Also HAL/S is named after one of the programmers, it is no acronym. ;)
 
Brain**** - Where it is easier to write a compiler for the darn thing then to actually make it do something useful.
 
Brain**** - Where it is easier to write a compiler for the darn thing then to actually make it do something useful.

Actually it is just a Turing automate...and like all Turing automates, it is not meant to do anything useful.
 
cat "test... test... test..." | perl -e '$??s:;s:s;;$?::s;;=]=>%-{<-|}<&|`{;;y; -/:-@[-`{-};`-{/" -;;s;;$_;see'
 
That won't work on me, I'm on a windows box. But still, that's a nasty command, and a nasty way of calling it, too. >.>

I hate Perl. rm -rf / indeed.

We did not invent the algorithm. The algorithm consistently finds Jesus. The algorithm killed Jeeves. The algorithm is banned in China. The algorithm is from Jersey. The algorithm constantly finds Jesus. This is not the algorithm. This is close.

The algorithm has also calculated your lucky number is $NaN. Please be aware that this number will rule your luck in life for the foreseeable future. It is advisable to write it down.
 
Didn't work... maybe I should sudo it. :shifty:
 
I have no idea what all these programming languages are that have all caps and have some symbol or two in the name.
 
int number = 10;

public void paint (Graphics g) {
g.drawString("Number is:" + number, 10, 10);
}
I have no idea what all these programming languages are that have all caps and have some symbol or two in the name.
Java hasn't got any caps or symbols in the Name.
 
HAL/S (FC) is just a PL/I derived programming language (like BASIC). Can't see much harm in it, except that it is sadly virtually unknown outside the United Space Alliance.
 
Back
Top