How would I store a bunch of bits where I could apply algorithms with ease? |
There will be 3 types: + binary + real (double) + string My current question for this project is about binary slots. How would I store a bunch of bits where I could apply algorithms with ease? I may also want to build memory slots off of other slots of the same type. For example, "virtual structures". I'm also planning on implementing "virtual classes," or "tables" to hold groups of these slots under domains/categories. |
This whole thing sounds more like a language than an AI, to be honest. |
std::bitset<N>
and std::vector<bool>
. You could easily roll your own, also, as a collection of bits is essentially a dynamically allocated, specially-handled array of bytes (unsigned char).There will be 3 types |
To do this, it needs to store the word "apple" as a class under the class "fruit", and under the class "food" etc. |