:o I feel a fool for even asking this question but I'm trying to move from console C programming to programming the windows api. I've been banging my head against the keyboard while reading Petzold. ...
Type: Posts; User: myth
:o I feel a fool for even asking this question but I'm trying to move from console C programming to programming the windows api. I've been banging my head against the keyboard while reading Petzold. ...
Thanks for your advice; my code wasn't THAT much of a write-off though ;) . getrandomnumber() is a separate function and there is a } immediatedly after the scanf(). I made the other amendments and...
Thanks vVv but I couldn't get any of that to work :( Here is the code that I'm currently working on. I deleted some irrelevant parts:
int playgame(int *dicearray, int ndice)
{
int i,...
Hi, I am returning an array to main() from a function. Once it has been returned to main() how do I perform operations on this array, such as printing its contents, counting the occurrences of...
I have 3 arrays that each contain 5 numbers between 0 and 6. The total non-0 numbers for all 3 arrays is 5. I want to put those 5 non-0 numbers into a single array. Any idea how I would do it? At the...