No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello, I'm making a networked client/server program (with a reverse connection, i.e. server connects to the client). I'm wanting to take a screenshot(server side) and transfer this file over to the client so that it can be saved. Now before I go any further, the code I'm about to disclose … |
|
I've got a constructor that sets some floats (x,y,z) and then I have a function called setXYZ. Now the constructor and the function do exactly the same thing. What's the best thing to do in this situation? Should I put the code in the function then call this from the … |
|
I'm developing a doubly linked list. Now the way I'm currently navigating it is by using a current position pointer, that starts at the tail and then loops round however many times you need (you'll tell the function) and it will then get to that node. Now, I'm having to … |
|
Hi everyone, I'm sure I'm doing something silly here! Basically my constructor creates a pointer initialised to null, then in one of my functions I create an integer array on the heap using the new keyword. Now basically I have a data structure that needs to be copied, like so … |