- 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...
It's my daily driver actually. One of the reasons I switched from Chrome was the constant updates offering nothing useful and constantly needing to search for ways to revert things.
Seems that Firefox has a more relaxed schedule of once per month, along with keeping uBlock Origin so time to switch back to the OG
The irony is Microsoft doesn’t care what any of you say of what should be happening minus higher clock speed because you can’t turn off this profile. It was shoved down your throat. Now it’s up to you to “shut up” and move on or uninstall Windows and install Linux.
Clock seems to have an Alarm regression: the only thing that happens now is a notification on the tray. That's not what it was at all (an actual UI popped up, and an alarm sound, too).
Question
+Xinok Subscriber²
- 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...
Edited by xinokLink to comment
https://www.neowin.net/forum/topic/337811-c-few-questions/Share on other sites
15 answers to this question
Recommended Posts