Message from C, C++ talks

June 2019

— I dont know why , but I just fix it delete folder then compile again and it works

— Is it possible remove or customize bad chars?

— Https://www.youtube.com/watch?v=78Y_LRZPVRg

— K

— 

Hi, I’ve a question: with only a “break” can I close two (or more) “while”? I hope you’ve understood

— Yeah as loong as your dont get infinite

— How?

— 

while(_TRUE_)
thing...
while(__True__)
thing
break

— But if I do this, only the second while get closed

— No

— You can put the outer loop into a function and return from it. Or use goto (but better don't)

— Not

— I'm reading a book and found an interesting search implementation example
http://www.dataorienteddesign.com/dodbook/node7.html#src:binarytimelookup
in Data-oriented Lookup part there are three code examples:
- first one is binary search in sorted array of structs
- second one is the same except for the keys moved to a separate array (so while searching it's more chance of cache hit)
- the third one I can't understand
seems like they do binary search to find a block that should fit cacheline and then do a linear search

Message permanent page

— Is it like that? Why not to go further then and divide the array to multiple levels of such blocks?

— Tnx