
please wait
by SubZeroWins
Container questions (1,2,3)
|
Just read and practiced my vector/deque/list/forward_list/set/multiset containers and I wondered about this one. 1) Why did they make it so that a set is REQ... |
Feb 27, 2024 at 10:00pm
[51 replies] Last: A compile time check would be one of the NP complete problems I believ... (by jonnin)
|
by Jonathan100
Shared variable between thread(ISR) and main()
|
Hello folks, I want to create a variable that will be shared between a thread (ISR) and main() I am working on embedded environment on linux os Basically... |
Feb 22, 2024 at 9:26pm
[8 replies] Last: Second, I learned about circular buffer. I wonder if it is suitable ... (by kigar64551)
|
by Ch1156
Collision detection using bit manipulation
|
So while working on a small game I discovered that the usual if statements for collision detection work fine for single directions, but when I had collision in ... |
Feb 11, 2024 at 11:34am
[12 replies] Last: Using bool and simplified, consider: #include <iostream> #include <... (by seeplus)
|
by shaefayejem
Confused about dangling pointers on a parent-child class
|
I am trying to understand dangling pointers using a Base Class and a Derived Class. #include <iostream> // Base class class BaseClass { private: pr... |
Feb 7, 2024 at 3:09pm
[15 replies] Last: A reference can also dangle for the same reason, the object referred t... (by deleted account xyzzy)
|
by SubZeroWins
sizeof(integers)/sizeof(integers[0]) on vector<int> (x64) (1,2)
|
sizeof(integers)/sizeof(integers ) On x86 this works just fine, but on x64 the vector seems to reserve a long long (8 bytes) for each element but only uses ... |
Feb 6, 2024 at 12:20am
[22 replies] Last: IMO using != no matter what the layout of the container might be mak... (by SubZeroWins)
|
by SubZeroWins
Operator overloading (1,2,3)
|
I am trying to understand operating overloading a bit better and I have 2 questions. 1)Why do we need a return of Date& in this part that is by the book? ... |
Feb 3, 2024 at 6:45pm
[42 replies] Last: Oh, I thought they were the same thing. A null terminated character = ... (by SubZeroWins)
|