Thanks for your help Adak and stahta01, I'll try that out.
CommonTater, thanks for that typical condescending forum-programmer response. That's unnecessary and not helpful at all, obviously my...
Type: Posts; User: scatterbrain
Thanks for your help Adak and stahta01, I'll try that out.
CommonTater, thanks for that typical condescending forum-programmer response. That's unnecessary and not helpful at all, obviously my...
My profess. requires that we only pass portions of the array that are necessary for that particular task.
Is there any way to pass only two dimensions of a 3D array.
for arr[2][3][4], lets say I want to use [3] and [4] to calculate something, and i only need those dimensions. Say i want to pass it to...
I know it has something to do with a pointer to an array. and then for a 3D array it's a pointer to a pointer to an array...or something like that
No, not with malloc.
I have been desperately scouring the net for information on how to use malloc, and I seriously still don't even understand the concept behind it. I just want to create a 3D array with dimensions...
Thanks man. That actually didn't work for me (or maybe I just didn't adjust my logic accordingly). But I got it to work by inserting break statements into the else statements. I'm still not sure why...
So I have to write a program counting the sum of digits, and the number of characters in a string... it looks like this. Oh, and it has to use corecursive functions, so that's why I used it if it...
Finally solved the problem. Thanks laserlight, you were right. And thank you to everyone else... Now I'm not even sure if the number generator was malfunctioning before, but it works now.
...
Okay, I wanted to see if only minimal code was necessary for me to be helped before I dropped this on you guys...
#include<stdio.h>
#include<time.h>
#include<math.h>
main(){
well, what makes me think I'm getting zero is that it's a guessing game . Whenever I input 000 as a guess, it gives me 3 correct prompts, one for the hundreds place, one for the tens place, and one...
I keep getting 0 (I think) for my random number generator. I'm programming a guessing game where a number between 100 and 999 is generated and the user guesses the number.
Here is my generator...