Posts
 
Reputation
Joined
Last Seen
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
1 Commented Post
0 Endorsements
Ranked #4K
~905 People Reached
Favorite Forums
Favorite Tags

2 Posted Topics

Member Avatar for DarthMustard

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 = …

Member Avatar for thelamb
1
779
Member Avatar for anglwthnati2de

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 …

Member Avatar for DarthMustard
0
126

The End.