delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/04/04/08:16:33

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Bill Cunningham" <nospam AT nspam DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: function question
Date: Sun, 4 Apr 2004 08:05:23 -0400
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <106vune1fu63e7a@corp.supernews.com>
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Complaints-To: abuse AT supernews DOT com
Lines: 22
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

    I don't know if it would be better to post this here or comp.lang.c but
I'll post it here since it's djgpp specific. I'm working on some open source
programming and seem to have run up against a wall. Can anyone give me any
pointers(no pun intended) on this.

int ma (int np[])
        {puts("This is number of prices? -> ");
         fflush(stdout);
         puts(int *(np));}

What this function is supossed to do is accept input of a number of prices
an investor wants to include in a simple moving average. Hince the ma. The
int * cast is the last thing to my knowledge to try. I know workable C. I'm
not really experienced with the fancy ins and outs. As the funcion
continues, it should tally a number of prices and calculate a ma. Then I'll
include it into a static library where it can be linked with a file
containing main().

    Bill



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019