Re: [CODE] Compiling with MSVC5

From: Cassidy Barton (cass@cassweb.com)
Date: 07/05/00


int my_function(int var1, char * mychar)
{
 ...
 ...
}

that's your function,
and then at the top of the document or (like I like to do it) a file that
you name whateveryouwant.h and then #include "whateveryouwant.h" at the top
that way you can easily include your functions in other documents you write

int my_function(int var1, char * mychar);

technically speaking the only required information (at least in C++ not sure
about in c) is this:

int my_function();

Cassidy Barton

"We didn't do three years of research and come up with this concept.  What
we did was follow our instincts and construct a computer that was what we
wanted." -- Steve Jobs

"Starting a company didn't mean that much to me.  I can design computers.  I
know I can." -- Steve Wozniak

----------
>From: "Torgny Bjers" <tb@sbbs.se>
>To: CIRCLE@post.queensu.ca
>Subject: Re: [CIRCLE] [CODE] Compiling with MSVC5
>Date: Wed, Jul 5, 2000, 12:00 AM
>

> Now, Patrick,
>
> How would I go about and prototyping?  Could you perhaps give me an example
> that relates to the snippets I sent you, so I can understand how to do it...
> I know that the prototype goes in the top and all of that, I just don't
> understand the warning types, therefore, I can't fix it... :/
>
> /Torgny
>
>
>>> I get warnings when I compile under MSVC5, I have included the warnings
> from
>>> the compile window as well as the actual code snippet that is causing the
>>> error here, perhaps someone can help out...
>>>
>>
>>                                >snip<
>>
>>        Hm.  First, they're warnings, not errors.  Since your mud compiled
>>with them anyway, they're probably not important.  What you can do though
>>- for some of them anyway - is to prototype your functions, or remove
>>variables that you don't use.
>>
>>                                        PjD
>>
>>
>>     +------------------------------------------------------------+
>>     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>>     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
>>     +------------------------------------------------------------+
>
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
>      +------------------------------------------------------------+
>


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/10/01 PDT