|
Math.h and Functions and Variables
Let me know if this function is right:
This is the 'pointer'
MyFunction()
/************************************************** *****************************
* FUNCTION NAME:
* PURPOSE:
* CALLED FROM: this file
* ARGUMENTS: none
* RETURNS: void
************************************************** *****************************/
void MyFunction(void)
{
}
Also, in the User routines.h, I added MyFunction(void) to the very end. Is that needed?
Next, do my variables always need to be predefined with int x, double x, etc.
Are variables always open to the whole .c file or just the function?
Do i need to put #include<Math.h>in the top?
Man, I wish we could get back to the ye olde days of BASIC. No predefinition required, etc.
__________________
I quit FRC over 2 years ago (more if you're reading this past 2010).
Last edited by amateurrobotguy : 25-02-2005 at 20:44.
|