Subject:
|
IC trouble - function definition
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Fri, 12 Nov 1999 19:44:47 GMT
|
Original-From:
|
John Bachman <bachman@anatek%avoidspam%.mv.com>
|
Viewed:
|
859 times
|
| |
| |
I am having trouble with function definitions. Can someone tell me what is wrong with this:
void detect_time_2 (void)
{ code here;}
I get a syntax error on the definition line and cannot figure out why.
TIA
John
|
|
Message has 3 Replies: | | Re: IC trouble - function definition
|
| John: If your function does not need a parameter passed to it just do: void detect_time2() { /* code here */ } just like int main() { /* code here */ } Bart. ___...___ Reply Separator ___...___ Subject: IC trouble - function definition Author: (...) (25 years ago, 12-Nov-99, to lugnet.robotics.handyboard)
| | | Re: IC trouble - function definition
|
| Thanks for all the helpful device but the darned thing still does not work. I have created a simplified program to try to figure out what I am doing wrong. Here it is: /* A simplified program to figure out what is wrong */ long time; void start() { (...) (25 years ago, 13-Nov-99, to lugnet.robotics.handyboard)
|
7 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|