Ben Cottrell

United Kingdom

Age: 32

Nov
2
reviewed Approve suggested edit on YouTube iFrame has intermittent load errors
Nov
2
reviewed Approve suggested edit on Assigning a created object to a selected object
Oct
23
revised getting data value from node, pointer confusion
Comments to describe the logical steps
Oct
23
comment getting data value from node, pointer confusion
@TommyK No, I didn't mean that at all - doing that would cause you to delete the second node in your list, and leave a "dangling" pointer (which is a likely cause for a Segfault). The line head = head->next ensures that the first node is safely removed from your list before you delete it.
Oct
23
revised getting data value from node, pointer confusion
added 108 characters in body
Oct
23
answered getting data value from node, pointer confusion
Oct
2
awarded Custodian
Oct
2
reviewed Approve suggested edit on C++ Using Variables in Classes
Sep
3
awarded Civic Duty
Jul
24
answered Arrays in Classes
Jul
11
awarded Excavator
Jul
11
revised one to one relationship with fluent api
Code formatting to reduce width
Jul
10
awarded Supporter
Jun
25
awarded Nice Answer
Jun
14
answered C++ Priority Queue - Reorder based on updated priorities
Jun
8
comment Named Pipes. Multiple processes
Is there a specific reason you're using named pipes? Aside from generally being slower than TCP, they also don't scale so easily. If you're just looking for any IPC mechanism then you could consider using WCF (Which supports many different IPC mechanisms including Named pipes, TCP and HTTP). WCF supports various messaging patterns, and provides a high-level abstraction around any IPC mechanism, allowing you to tackle IPC problems at a much higher level. msdn.microsoft.com/en-us/library/gg132851.aspx
Jun
8
comment difference between pointer to an array and pointer to the first element of an array
@Potatoswatter fair point, I've edited it out since it's not really needed for the answer.
Jun
8
revised difference between pointer to an array and pointer to the first element of an array
added 45 characters in body
Jun
8
comment difference between pointer to an array and pointer to the first element of an array
@Potatoswatter That is just short-hand syntax for int* anotherPtr = &theArray[0]; They both do exactly the same thing.
Jun
8
answered difference between pointer to an array and pointer to the first element of an array
1 2 3 4 5