6 Reputation Points
Ranked #3K
- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
100% Quality Score
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
~905 People Reached
Favorite Forums
Favorite Tags
2 Posted Topics
Hi, I am writing a simple program modeling client/server interaction. I want the server to be capable of handling multiple connections. To implement this, I have been using _beginthreadex, passing references to sockets to the child thread. For example: [code]while(1) { SOCKET sClient = accept(ListenSocket, NULL, NULL); ... child = …
The point of vectors is that they keep track of indices for you (as VernonDozier pointed out). If you know that you will have EXACTLY 4 employees in your vector (as your code has now), it would make sense to use a simple array, as you are not taking advantage …
The End.
DarthMustard