When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
7 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
Someone please help
Just iterate over the vector, no need for a switch.
Alternatively use an std::map to find the right entry easier.
Each chat in the messenger (in my specific case) is an std::vector object of a class
What?
Each chat is astd::vector<T>? What isT? Why isn't the entire thing just oneChatinstance?
It blockchains messages (abstract from all the presumptions that come with that. It's nothing to do with cryptocurrencies and agreed-upon state. The only requirement for a blockchain is chaining hashes that include the previous block'hash in their formula,and in my case is simply as proof of work), and each chat is it's own blockchain
no one really gives a shit about your application... you're not likely to get much help by ranting about block chains or whatever the hell a messenger/chat is. try to keep it about data/algorythms, hashes, containers, c++ etc.