Newsgroups: fj.lang.c++,fj.lang.c
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!infoweb-news!news.fukuoka.infoweb.or.jp!newshost.ryukyu.ad.jp!sour!merope!void
From: void@merope.opus.or.jp (Kusakabe Youichi)
Subject: Re: Programming style (Re: thanks(Re:[Q]PROGRAM ERROR))
Message-ID: <1996Jul1.044621.921@merope.opus.or.jp>
Followup-To: fj.lang.c++,fj.lang.c
Organization: Macintosh User Group PLEIADES in opus (Okinawa Personal Unix Society)
X-Newsreader: TIN [version 1.2 PL0]
References: <NMATSUMU.96Jun30142710@taisih.geo.titech.ac.jp>
Date: Mon, 1 Jul 1996 04:46:21 GMT
Lines: 23
Xref: galaxy.trc.rwcp.or.jp fj.lang.c++:165 fj.lang.c:2574
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.c&nb=2574&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

Namihiko Matsumura (nmatsumu@geo.titech.ac.jp) wrote:
: $B$G!"K\Bj$KLa$j$^$9$,!"$G$O$3$N%3!<%I$r!V4X?t$r;H$C$FCj>]2=!W$9$k$H(B...
: $B$3$s$J46$8$G$9$+$M!#(B

$B%3%s%Q%$%k$0$i$$$7$F$_$j$c$$$$$N$K(B...$B!#(B

> double set_bar(int N1, double S, int N2)
> {
>     if (N1 == 0)
>         return 0;
>     else
>         return S / N2;
> }
>            ...
>     r_bar       = set_bar(N_epsilon, S_r      , N_r      );
>     epsilon_bar = set_bar(N_s      , S_s      , N_s      );
>     t_bar       = set_bar(N_t      , S_epsilon, N_t      );
>     u_bar       = set_bar(N_u      , S_u      , N_epslion);

  $B%X(B_$B%X(B   ------------------------
$B%_!&!&(B $B%_(B  void@merope.opus.or.jp
 (  $B!k(B )$B!A(B            $BF|2<ItM[0l(B
----------------------------------
