- Is it possible to set up references to arrays? ex:
int array[15];
int& var = array;
var[5] = 0;
// Just an example...
- Is it possible to trigger a thread if the function is a member of a class? ex:
class MyClass{
void funct(void* var); // trigger a thread using this function
}
A friend told me its impossible, just want to be absolutely sure.
- If the previous is impossible, then I would like to know a good method for doing this:
Triggering a thread which can also access the private members of a class, using references or pointers if needed.
Edit: One more question I forgot to ask...
- Can I preallocate files without having to write data to the harddrive first? (e.g. Allocate a 300mb file without having to write 300mb of data to the HD) If its complicated, it might be best not to explain...