- 3 Posts
- 2 Comments
Joined 2 years ago
Cake day: June 8th, 2024
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
kiri@ani.socialto
Ask Lemmy@lemmy.world•Have you ever spent Christmas alone? Why and how was it?
1·2 months agodeleted by creator
I have a solution with a bit fields. Now your bool is 1 byte :
struct Flags { bool flag0 : 1; bool flag1 : 1; bool flag2 : 1; bool flag3 : 1; bool flag4 : 1; bool flag5 : 1; bool flag6 : 1; bool flag7 : 1; };Or for example:
struct Flags { bool flag0 : 1; bool flag1 : 1: int x_cord : 3; int y_cord : 3; };

This joke will always be relevant.