BinaryByter
it won't be good
Dima
anti_c_cast_reinterpret<int>(kek);
Mat
John Carmack did mix c and c++
On the other hand, he was not so stupid
BinaryByter
On the other hand, he was not so stupid
he did it back when C++ WAS a C with classes
Dima
that idtech 3 code ohhh geeez so sweet
Dima
Doom 3 is > 2000
Dima
so it isnt C with classes
Dima
but I like that style
BinaryByter
Doom 3 is > 2000
then they were big shitheads
Dima
Almost coded alternative for entire std lib methods
Roxifλsz 🇱🇹
>Evil floating point hack, what the fuck? Is that from doom 3 source or another game?
Dima
quake 3
Dima
idtech 3
Dima
that invert square root
Roxifλsz 🇱🇹
quake 3
Oh ok
Roxifλsz 🇱🇹
that invert square root
Yep that one lmao
Dima
sse? mmx? nah evil floating hack will do
BinaryByter
> You can't. C++ doesn't even have the concept of a console. @stevewozniak i've googled for you
BinaryByter
it's not a hack as it has been proven to be precise enough
Dima
loollll
BinaryByter
loollll
i'M serious :)
BinaryByter
0x5
Dima
cout << "\033[2J\033[1;1H";
Dima
loollll
BinaryByter
cout << "\033[2J\033[1;1H";
Oh you just learned about escape sequences?
Dima
Hm so funny
Dima
thats not portable
BinaryByter
sure, but it works
Dima
if you didnt know
BinaryByter
I was talkiong to him
olli
There is no portable way to do it, since neither C nor C++ are aware of consoles or screens.
Dima
yeah
BinaryByter
not portable
Dima
at least spam with ifdefs
BinaryByter
on windows, you'd use cls
Roxifλsz 🇱🇹
thats not portable
Can be solved easily with preprocessor IFDEFs and using either ANSI sequences or winapi, where appropriate
Dima
this
Dima
at least spam with ifdefs
Dima
> the whole interface just to make console look aesthetic and cool
Roxifλsz 🇱🇹
not portable
And in general system() should be avoided as much as possible
BinaryByter
i've seen someone who tried to execute commands with sudo via system() xDDD
Dima
> your old code
BinaryByter
BinaryByter
IN WINDOZ LOL
please, don't talk when you want to shitpost :D
BinaryByter
not really
BinaryByter
make yourself a function
BinaryByter
and depending on the architecture you compile another version of that function
BinaryByter
/warn shitpost
Marie
Warn removed by Anunay.
Dima
kek
BinaryByter
:D
Dima
that’s not fair
BinaryByter
you were unwarned
Dima
Roxifλsz 🇱🇹
As maxi said, put this in a function so you can keep your code looking cleaner
Mat
you were unwarned
Use your power with responsability :P
BinaryByter
Use your power with responsability :P
Oh I can't just ban any stranger? 😢
BinaryByter
:D
Roxifλsz 🇱🇹
Oh I can't just ban any stranger? 😢
I don't exactly see how Dima violated any rule?
Dima
o.O
BinaryByter
thus interrupting all the conversations
BinaryByter
I might have overreacted
BinaryByter
sorry :)
Roxifλsz 🇱🇹
Alright
Talula
This will not print anything.
BinaryByter
This will not print anything.
He wanted to clear his screen
Talula
There are many ways to do it, but this wouldn't even work.
Talula
If you don't want to use System("CLS");
Talula
then use for loop for number of rows and cout « "\n\r";
BinaryByter
yea I would use that