Share your repls and programming experiences

← Back to all posts
Bit-Wise Multiplication
h
StudentFires (327)

Is it okay to modify old code?

Here's a small library for bit-wise mathematics.

Bit-Wise Math

Commentshotnewtop
AmazingMech2418 (655)

Weekly has to be in all caps in the post title. Though, great job! This is fairly unconventional, but it works!.

StudentFires (327)

@AmazingMech2418 Thank you! I'm sure it is, but I had originally used used it with asm.js for optimization. Just heavily modified to port to C++. And it's sure fast!

AmazingMech2418 (655)

@StudentFires Yeah. However, you might want to remove the external libraries used for terminal manipulation and do it without them...

StudentFires (327)

@AmazingMech2418 But they aren't involved in the mathematics?

AmazingMech2418 (655)

@StudentFires Well, yeah, but I still don't really know if it can be used since it isn't iostream (or maybe iomanip) since only those are the ones absolutely required for a basic UI.

StudentFires (327)

@AmazingMech2418 Shouldn't we let the judges judge that?

AmazingMech2418 (655)

@StudentFires I guess. I'm just saying that you might get disqualified...

StudentFires (327)

@AmazingMech2418 Disqualified for making the user interface too easy... that is a sad day indeed.

StudentFires (327)

@AmazingMech2418 Okay, less start removing this stuff, I can use puts("...") for output, what about input?

StudentFires (327)

@AmazingMech2418 Ahh, gets! Now to replace my loops with tail recursion... this is so unconventional.

StudentFires (327)

@AmazingMech2418 Na, cin and wcin need you to press enter.