Go to Post Winning a match is not something a robot does, winning is a team effort that requires the cooperation of dozens of individuals. - Andrew Schreiber [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 25-02-2005, 20:24
amateurrobotguy's Avatar
amateurrobotguy amateurrobotguy is offline
Lead Programmer/Senior Engineer
no team
 
Join Date: Feb 2005
Rookie Year: 2000
Location: ****
Posts: 136
amateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these partsamateurrobotguy is infamous around these parts
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.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Use of Functions in Autonomous VideoMan053 Programming 11 17-02-2005 16:27
Updated: Serial Port Driver Code Kevin Watson Programming 4 05-02-2005 18:39
Overloaded functions jgannon Programming 5 31-12-2004 11:04
Do you write functions for your code? Max Lobovsky Programming 26 11-03-2004 07:04
math.h library mightywombat Programming 24 17-01-2004 13:10


All times are GMT -5. The time now is 21:10.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi