OMF:BG Message Board Forum Index OMF:BG Message Board
One Must Fall: Battlegrounds
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The general C api

 
Post new topic   Reply to topic    OMF:BG Message Board Forum Index -> Tech Talk
View previous topic :: View next topic  
Author Message
eengoedemorgen



Joined: 30 Aug 2002
Posts: 5322
Location: The Netherlands

PostPosted: Wed Nov 09, 2005 3:52 am    Post subject: The general C api Reply with quote

Ok, I'm in my first practicum with the C (not C++) language and my teacher can't tell me where the general A api is (if that's what it's called -_-, hooray for good teacher).

What I need is to import the Pi into my program using the
#include <math.h>

But how do I do it?

And can someone also point me the link where the general API is?

Thanks in advance!
EGM
_________________
"I don't like pancake restaurants, you can only order 1 pancake at a time" - My girlfriend

Electronic Gaming Machine
Back to top
View user's profile Send private message Visit poster's website
X-BoT



Joined: 21 May 2001
Posts: 5686
Location: Sydney, Australia

PostPosted: Wed Nov 09, 2005 8:02 am    Post subject: Re: The general C api Reply with quote

I think there is a constant called M_PI in math.h. As far as the "general API" goes, there isn't really one. There are many different implementations. There are standards though, such as ANSI C that you might want to look into.
_________________

[ X-BoT's OMF Universe ] [ System Specs ]
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
salem



Joined: 07 Aug 2003
Posts: 1778
Location: Spain

PostPosted: Wed Nov 09, 2005 9:29 am    Post subject: Re: The general C api Reply with quote

you can include the std (standard library or something).

If i remember correctly it was something like:

#include <std.h>

or <stdlib.h>
Back to top
View user's profile Send private message
Viper-Vision



Joined: 28 Mar 2002
Posts: 2222
Location: Veghel

PostPosted: Wed Nov 09, 2005 9:44 am    Post subject: Re: The general C api Reply with quote

You might want to look into this,
It's not only C++ since it's just a standard library which can be used for C and C++.
C standard library
Back to top
View user's profile Send private message
eengoedemorgen



Joined: 30 Aug 2002
Posts: 5322
Location: The Netherlands

PostPosted: Mon Nov 14, 2005 2:50 pm    Post subject: Re: The general C api Reply with quote

Thanks guys, that was good help.
Special thanks to X-bot for MSN assistance Smile
_________________
"I don't like pancake restaurants, you can only order 1 pancake at a time" - My girlfriend

Electronic Gaming Machine
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OMF:BG Message Board Forum Index -> Tech Talk All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

Style Blacker1 by Blacker47