Skip to main content
6 events
when toggle format what by license comment
Jan 29, 2021 at 14:05 comment added dedObed Also, operator overloading is no way OOP-exclusive technique.
Jan 29, 2021 at 10:37 comment added Davor @gnasher729 - that has literally nothing to do with it, and it's not recommended to do in C++ either. Operator overloads are evil.
Jan 28, 2021 at 23:31 comment added Glen Yates @gnasher729 It is not necessary to redefine the + - * / operators in C, you just have to parse them in the input stream and provide functions for them.
Jan 28, 2021 at 19:56 comment added gnasher729 Try redefining + - * / in C.
Jan 28, 2021 at 9:25 comment added Davor There is nothing special about OOP here, you can do the exact same thing in C with structs, or literally any other language with multiple variables per number if they don't support any sort of value grouping (like assembler).
Jan 27, 2021 at 23:55 history answered gnasher729 CC BY-SA 4.0