So is it really seperate commands to access the microcontroller to play the audio files? It seems to me that it would be something like PlayAudioClip(offset) where offset would represent which...
Type: Posts; User: AndrewHunter
So is it really seperate commands to access the microcontroller to play the audio files? It seems to me that it would be something like PlayAudioClip(offset) where offset would represent which...
LOL....nope, and I even gave you credit for it. Well I guess we will both have to wait until we are out of highschool to find out what happens in the real world. ;):tongue:
Who is?
1. How does this program get the text to read to the user?
2. Where is this text stored during program execution?
3. How did you implement "reading the text to the user" (I don't need code for txt...
It is because you are not actually calling the function. Look at your code:
if((the user said "watermelon"))
{
while(DeltaIndex<=8)
{
_SendString232((long)"\n\r you should now go to...
D*** C++ compiler foils me again.
Did you try to run the program? Does it work? Do you know what an array is or how you can implement them in C? Did you even bother to look at my other posts as I told you to? Am I the one asking for...
You appear to be new at programming, and as such function pointers may not be the way to go with what you want to do. I posted 2 examples -- see above. The first one involves a lookup table (the one...
Look at the example I posted. It shows you how to do this.
Here, maybe this example will be a little clearier to you since it doesn't use a lookup table and has functions which take a parameter of type int and return nothing.
Note: Regardless of how your...
Just use switch statements, they are easier and quicker.
void foo(void);
int main(void){
int answer;
printf("Select:");
There you go trying to make things simple again Tater. :biggrin:
As for the OP, Tater's point really is the simpliest and best solution for what it appears you want to do. However, if you want to...