Click here to Skip to main content
16,004,529 members

Comments by KarstenK (Top 200 by date)

KarstenK 29-Aug-24 3:31am View    
We totally disagree. When not taking advice than ask not. Go your own way and try not get insulting.
KarstenK 27-Aug-24 3:43am View    
Now I have seen your struct draw : public helpers::xdraw_point. It is totally top-down of my advice. Now I understand your problem: you have to learn about software architecture at first. Find some tutorial - it is worth the time.
KarstenK 26-Aug-24 5:13am View    
You can also use some base class. Only using static classes isnt the best way because you have data which can represented as objects.
My solution is to break down the code in smaller and easier maintainable structures. These needs only some functions and is some "hiding". Like a diameter function has only a circle, but an area function has every 2D object.
KarstenK 20-Aug-24 7:24am View    
stick to my solution because it also handles this problem. Type casting is evil when there isnt any check after it but the machine code. :-/
KarstenK 19-Aug-24 3:44am View    
Be aware that multibyte string are using double space and needing other function. So better stick to my advice or risk a lot of trouble.